Crazy lens

Redis 报错 : MISCONF Redis is configured to save RDB snapshots,..
今天压测 突然出现这个bugMISCONF Redis is configured to save RDB sna...
扫描右侧二维码阅读全文
24
2017/04

Redis 报错 : MISCONF Redis is configured to save RDB snapshots,..

今天压测 突然出现这个bug

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

  1. Please check Redis logs for details about the error.

上网搜到个答案

原因:

强制关闭Redis快照导致不能持久化。

解决方案:

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

root@ubuntu:/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"
(integer) 1
最后修改:2019 年 11 月 04 日 11 : 43 PM
如果觉得我的文章对你有用,请随意赞赏

发表评论