Redis单服务报错:READONLY You can‘t write against a read only replica

生产环境一个redis单服务项目报错:

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

修改redis配置文件

replica-read-only no