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 

 

posted @ 2019-12-12 15:39  张含韵好可爱  阅读(361)  评论(0)    收藏  举报