io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set
[root@VM-centos etc]# config set requirepass [yuorpassword]
io.lettuce.core.RedisCommandExecutionException: READONLY You can't write against a read only replica.
使用下面的命令查看当前redis的读写权限:
127.0.0.1:6379> config get slave-read-only
显示:
127.0.0.1:6379> config get slave-read-only
说明只读权限;使用下面命令开启读写权限:
127.0.0.1:6280> config set slave-read-only no