查看配置文件
cat redis.conf | grep -v "^#" | grep -v "^$"
Host A redis.conf
bind 0.0.0.0
protected-mode no
daemonize yes
supervised systemd
requirepass password
Host A sentinel.conf
protected-mode no
sentinel monitor mymaster HOSTA 6379 1
sentinel down-after-milliseconds mymaster 5000
sentinel auth-pass mymaster password
Host B redis.conf
bind 0.0.0.0
protected-mode no
port 6379
daemonize yes
supervised systemd
requirepass password
masterauth password
replicaof HOSTA 6379
Host B sential.conf
protected-mode no
port 26379
daemonize yes
sentinel monitor mymaster HOSTA 6379 1
sentinel down-after-milliseconds mymaster 5000
sentinel auth-pass mymaster password