LoginSignup
2
0

More than 5 years have passed since last update.

ArchLinux Redis起動方法

Posted at

ArchLinux Redis起動方法

備忘録としてArchLinuxのredis起動方法を記述

↓下記Archwikiも参照しながら作業してください
redis(日本語)
redis(英語)

インストール

redis パッケージのインストール
※redisはAURにあるので注意、自分はyayでインストール

yay redis

yayの導入は下記記事参照
ArchLinux yay インストール方法

設定

下記設定ファイルを変更

/etc/redis.conf
#ip設定(デフォルト)
bind 127.0.0.1
#ポート設定(デフォルト)
port 6379

#unixソケット設定
unixsocket /run/redis/redis.sock
#ソケットのパーミッションを全て redis グループのメンバーに設定
unixsocketperm 770

#ログファイル設定
logfile /var/log/redis/redis.log

ソケットを保存するためのディレクトリを作成

sudo mkdir /run/redis
sudo chown redis:redis /run/redis
sudo chmod 755 /run/redis

ログファイル用のディレクトリを作成

sudo mkdir /var/log/redis
sudo chown redis:redis /var/log/redis
sudo chmod 755 /var/log/redis

起動

sudo systemctl start redis

確認

$ ls /run/redis
redis.sock

$ ps aux | grep "[r]edis"
redis     9380  0.1  0.1  47176  5308 ?        Ssl  21:06   0:03 /usr/bin/redis-server 127.0.0.1:6379

OK

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0