MISCONF Redis is configured to save RDB snapshots

今天客户突然反馈用我们的api出现了下面的这个错误

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error., sPort: 52437, LastCommand:

 

解决方案:

运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

 ./redis-cli

 auth  passwordxx 
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"
(integer) 1

posted @ 2016-04-05 17:23  yuan.net  阅读(257)  评论(0编辑  收藏  举报