解决Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist

时间:2021-6-9 作者:qvyue

在使用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

原因:Redis被配置为保存数据库快照,但它目前不能持久化到硬盘
解决办法:
将stop-writes-on-bgsave-error设置为no

127.0.0.1:6379> config set stop-writes-on-bgsave-error no
声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:qvyue@qq.com 进行举报,并提供相关证据,工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。