sentinel.conf 配置

daemonize yes

logfile "/home/data/redis/redis_sentinel.log"

sentinel monitor mymaster 192.168.2.202 6379 2  -->这里的值会变,第一次设置时指定为201,但是当202变为master时,这里的配置会自动变成202

原文地址:https://www.cnblogs.com/ZHUJIBlogs/p/10375474.html