Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

40.3. You can't write against a read only replica.

Redis 写入出错

			
[root@netkiller ~]# docker exec -it redis redis-cli
127.0.0.1:6379> set name neo
(error) READONLY You can't write against a read only replica.
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"
127.0.0.1:6379> set name neo
OK
127.0.0.1:6379> get name
"neo"