【总结】Redis连接错误:MISCONF Redis is configured to save RDB snapshots...
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 ..
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..
Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改数据的命令被禁用了,因为目前实例配置是当写数据时快照失败了去报告错误。请查看Redis日志的详细错误信息。
引发原因
强制关闭Redis快照导致不能持久化。
两种修改方法:
1. 通过redis命令行修改
命令行修改示例:
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
2. 修改redis.conf配置文件
vi打开redis-server配置的redis.conf文件,然后使用快捷匹配模式:/stop-writes-on-bgsave-error定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no就可以了。
------------------------------------------------------
------------------------------------------------------
关于我(个人域名)
期望和大家一起学习,共同进步,共勉,O(∩_∩)O谢谢
欢迎交流问题,可加个人QQ 469580884,
或者,加我的群号 751925591,一起探讨交流问题
不讲虚的,只做实干家
Talk is cheap,show me the code
更多推荐
所有评论(0)