1-新建配置文件-sentinel.conf
port 27001
#声明Ip
sentinel announce-ip 114.115.216.131
#声明集群 端口 slave节点数据可以通过master info replication获取
#2-主观下线与客观下线的数量
sentinel monitor mymaster 114.115.216.131 7001 2
#超时时间
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 60000
dir "/tmp/s1"
备注:
![](https://i-blog.csdnimg.cn/blog_migrate/2b7d3dfa2387351c5b6e95c7666ab3b7.png)
2-拷贝配置文件至其他目录下
并修改当前哨兵实例的端口以及dir路径
3-启动哨兵系统
redis-sentinel s1/sentinel.conf
redis-sentinel s2/sentinel.conf
redis-sentinel s3/sentinel.conf