.查看Redis 資訊
$ redis-cli info
[...]
# Replication
role:slave
master_host:192.168.50.11
master_port:6379
master_link_status:down
.修改Redis master/slave mode
$ redis-cli
redis 127.0.0.1:6379> slaveof no one
redis 127.0.0.1:6379> info
[...]
# Replication
role:master
connected_slaves:0
https://www.claudiokuenzler.com/blog/470/how-to-do-redis-master-slave-cluster-switch-failover
No comments:
Post a Comment