redis 报错 You can't write against a read only replica
原文:https://www.cnblogs.com/dontbealarmedimwithyou/p/17999401
redis-cli -h 127.0.0.1 -p 6379
127.0.0.1:6379> config get slave-read-only
1) "slave-read-only"
2) "yes"
127.0.0.1:6379> config set slave-read-only no
OK
127.0.0.1:6379> config get slave-read-only
1) "slave-read-only"
2) "no"