redis哨兵sentinel.conf文件
关闭保护模式
//17行 protected-mode no
端口号
//21 port 26379
后台启动
//26 daemonize yes
//84行 主机的ip加端口号 2 为票数
sentinel monitor mymaster 127.0.0.1 6379 2
宕机超时时间
sentinel down-after-milliseconds mymaster 10000
选举失败时间
sentinel failover-timeout mymaster 20000
启动哨兵
1. 到这个文件的目录打上
redis-sentinel sentinel.conf

浙公网安备 33010602011771号