bind 127.0.0.1
port 26579
sentinel monitor mymaster 127.0.0.1 6380 1
sentinel down-after-milliseconds mymaster 5000
sentinel parallel-syncs mymaster 1
sentinel failover-timeout mymaster 15000
加上bind 127.0.0.1表示仅监听IPv4,如果不配置表示监听IPv6.
bind 127.0.0.1
port 26579
sentinel monitor mymaster 127.0.0.1 6380 1
sentinel down-after-milliseconds mymaster 5000
sentinel parallel-syncs mymaster 1
sentinel failover-timeout mymaster 15000
加上bind 127.0.0.1表示仅监听IPv4,如果不配置表示监听IPv6.