本文主要是介绍redis出现MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
redis保存或修改数据出现以下错误
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.
at redis.clients.jedis.Protocol.processError(Protocol.java:127)at redis.clients.jedis.Protocol.process(Protocol.java:161)at redis.clients.jedis.Protocol.read(Protocol.java:215)at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:239)at redis.clients.jedis.BinaryJedis.set(BinaryJedis.java:211)
解决方法:通过redis-cli连接到服务器后执行以下命令:
config set stop-writes-on-bgsave-error no
重试即可!!!
这篇关于redis出现MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!