LoginSignup
9
7

More than 5 years have passed since last update.

redisのUnixDomainSocket通信でのパーミッション設定

Last updated at Posted at 2014-10-11

マニュアルのどこかに書いてあるのかもしれませんが、備忘録です。

/etc/redis.conf
unixsocket /var/run/redis/redis.sock #socketファイルのパス
unixsocketperm 700 #socketファイルのパーミッション

ソースコードにはきちんとpermissionと書かれていたのに、設定ファイルだと中途半端に省略してあって分かりにくい。。

背景

gitlabのv7.3からproduction運用ではredisとアプリ間はソケットを用いて通信することを推奨されています。

rootでgitlabとredisをインストールする場合は問題ありませんが、
一般ユーザーでgitlabを、rootでredisをインストールする場合にはパーミッションの注意が必要です。

9
7
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
9
7