搭建Redis高可用集群的哨兵模式(Redis-Sentinel)【Windows环境】

参考

https://blog.csdn.net/itanping/article/details/100544152

哨兵模式搭建好,Java中配置和使用Redis高可用集群的哨兵模式,引入Jedis的POM依赖,增加工具类JedisUtil,实现操作Redis-Sentinel集群。

遇到的问题:Cannot get master address from sentinel running Connection reset by peer: socket write error. Trying next one。

解决文案:在redis.config和sentinel.config中修改  # 是否保护模式(设置为no 方便远端访问) protected-mode no

原文地址:https://www.cnblogs.com/qaidouding/p/12161372.html