redis哨兵启动master sdown


如果在主从配置Redis有密码,在哨兵配置文件中也要添加Redis密码

port 26380
daemonize no
pidfile "/var/run/redis-sentinel-26380.pid"
logfile ""
dir "/tmp"
#sentinel myid f8ea0c914b54c762411eb032756e0a8463ffc9c4
sentinel myid f6d63b7d9fca8e530d2908a15527fea44819ebb3
sentinel deny-scripts-reconfig yes
sentinel monitor mymaster 127.0.0.1 6380 2
sentinel auth-pass mymaster Password
sentinel config-epoch mymaster 0
sentinel leader-epoch mymaster 0
# Generated by CONFIG REWRITE
protected-mode no
sentinel current-epoch 0