redis配置sentinel,master shutdown后主从切换失败,提示错误redis
-failover-abort-not-elected master mymaster x.x.x.x 6379ast
缘由是sentinel.conf缺乏配置,若redis.conf中添加配置
protected-mode yes bind 0.0.0.0di
则sentinel.conf中添加该属性。bind