首页 > 数据库技术 > 详细

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

时间:2019-08-29 10:46:33      阅读:158      评论:0      收藏:0      [点我收藏+]

在redis上删除key值时,出现:

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.;

nested exception is redis.clients.jedis.exceptions.JedisDataException:
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

liunx 下解决方法:

通过运行config set stop-writes-on-bgsave-error no命令,关闭stop-writes-on-bgsave-error

技术分享图片

 

windows下解决方法:

找到了redis.windows.conf文件,找到stop-writes-on-bgsave-error yes 
技术分享图片

修改为:

技术分享图片

 

 

参考链接:https://blog.csdn.net/yangfengjueqi/article/details/83856171

 

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

原文:https://www.cnblogs.com/amy720/p/11427983.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!