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"
posted @ 2024-07-03 09:44  pine007  阅读(36)  评论(0编辑  收藏  举报