redis出现异常MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on

来源:互联网 发布:讨鬼传2捏脸数据 女 编辑:程序博客网 时间:2024/06/05 19:25

在执行删除redis缓存的时候,会出现MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.的错误,找了半天发现是,当服务器内存不足的时候回造成这种现象,因为数据持续写入,读取速度远低于写入速度,持续1H以上,内存占用量为80%。
默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户
进行任何更新操作(set…),避免人为强制停止redis 快照
因为这个是线上的项目,所以快速的解决方法就是:
进入redis src目录下
启动客户端:
./redis-cli
密码登录:auth 123456
然后输入:
config set stop-writes-on-bgsave-error no

阅读全文
1 0
原创粉丝点击