redis出现MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on
Posted killer-leon
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章
redis出现MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on
redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots
连接redis报错MISCONF Redis is configured to save RDB s
MISCONF Redis is configured to save RDB snapshots
Redis常见报错之 Redis::CommandError (MISCONF Redis is configured to save RDB snapshots, but it is current
连接Redis后执行命令错误 MISCONF Redis is configured to save RDB snapshots