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