###Instructions
####Setup Sentinel
- Copy the sentinel.conf file to
/etc/redis/sentinel.conf
- Copy the redis-sentinel.sh script to
/etc/init.d/redis-sentinel
- Give the script execute permissions
sudo chmod +x /etc/init.d/redis-sentinel
- Start script at boot time
sudo update-rc.d redis-sentinel defaults
- Copy sentinel to
/usr/local/bin/
if you haven't yet - Start sentinel
sudo /etc/init.d/redis-sentinel start
some other stuff
copy sentinel file to /etc/redis/sentinel.conf.orig
, and then create a copy of that file at /etc/redis/sentinel.conf
, sentinel will modify that file when it detects slaves and/or other sentinels, having your original file is handy as you can just replace the one that sentinel modified when you screw things up.
create a redis user and gorup
useradd -G redis redis
give the redis user ownership to sentinel.conf (so it can edit it)
sudo chown redis:redis /etc/redis/sentinel.conf
create the log directory for sentinel
sudo mkdir /var/log/redis/
sudo chown redis:redis /var/log/redis/