在redis客户端执行命令时报错
命令:set test03 fenggm
报错内容:
(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解决该问题。