问题1:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
>>>Redis正常运行,然后重新启动了一次Redis,出现以下错误:
redis.clients.jedis.exceptions.JedisDataException: 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客户端执行
127.0.0.1:6379 > config set stop-writes-on-bgsave-error no
参考 https://blog.csdn.net/qq_31766907/article/details/78715935
共同学习,写下你的评论
评论加载中...
作者其他优质文章