主页 > 运维运营 > Redis >
发布时间:2017-04-21 作者:apizl 阅读:270次

redis 提示清除全部keys出现报错

127.0.0.1:6379> FLUSHALL

(error) 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.

原因:

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

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

只需重新设置config

127.0.0.1:6379>  config set stop-writes-on-bgsave-error no

OK

127.0.0.1:6379>  lpush myColour "red"

(integer) 1

clipboard.png


文章由爱资料原创本文地址:https://www.apizl.com/archives/view-133862-1.html,转载请以链接形式标明本文地址!
关键字词: