-
问题异常截图:
-
异常代码:
(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即可避免这种问题
-
解决办法:
连接redis,执行以下命令:
config set stop-writes-on-bgsave-error no
-
重启redis方法:
service redis restart
-
重启后成功连接,然后执行命令成功响应结果,处理完毕。
如何解决了您的问题,还希望来JAVA WEB开发交流群:958923746,有问题欢迎共享,共同提升!