继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

【java】Redis重启后报错问题

JFSL
关注TA
已关注
手记 9
粉丝 14
获赞 93

问题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

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP