redis sentinel 正常啟動 ./redis-sentinel sentinel.conf 就可以啟動, 但是如果linux 操作系統(比如阿里雲os)不支持ipv6,就會導致sentinel 啟動失敗,報 Creating Server TCP listening socket *:26379: unable to bind socket 失敗, 這時候必須修改sentinel.conf
ECS Linux系統默認關閉了Ipv6的功能,所以 redis-sentinel 嘗試在 ipv6 的網絡接口上監聽時,提示出錯。可以在 sentinel.conf 里配置文件設置僅監聽ipv4的網絡接口,修改配置文件 sentinel.conf 在 定義監聽端口一行前添加監聽IP參數,如 bind 0.0.0.0 ,表示僅監聽IPv4,然后重新啟動Sentinel即可