报错信息:
(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
报错原因:
究其原因是因为强制把redis快照关闭了导致不能持久化的问题,在网上查了一些相关解决方案,通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。
参考:
https://www.cnblogs.com/bigtreei/p/14167656.html
https://blog.csdn.net/u014071875/article/details/103715183
解决办法:
方法一:通过redis命令行直接改(ok)
进入redis命令行执行:config set stop-writes-on-bgsave-error no
方法二:通过修改redis.conf文件修改。(没试)