Redis不能持久化

记录下今天运行Redis时发生错误,错误信息如下:

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

翻译了一波大致意思是:MISCONF Redis配置为保存RDB快照,但目前无法在磁盘上保留。 可以修改可能修改数据集的命令。 请检查Redis日志以获取有关错误的详细信息

网上找了一些资料大致原因是: 强制关闭Redis快照导致不能持久化

解决方案:

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

你可能感兴趣的:(Redis)