欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > 数据库 >内容正文

数据库

Redis报错:redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snap

发布时间:2023/12/18 数据库 58 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Redis报错:redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snap 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

首先找到出现错误的原因:

redis.exceptions.ResponseError: 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.

  misconf redis被配置以保存数据库快照,但misconf redis目前不能在硬盘上持久化。用来修改数据集合的命令不能用,请使用日志的错误详细信息。

  强制把redis快照关闭了导致不能持久化的问题。运行info命令查看redis快照的状态,如下:

  

解决方案如下:

1. redis运行 config set stop-writes-on-bgsave-error no 命令

config set stop-writes-on-bgsave-error no  2.修改redis.conf文件:vi打开redis-server配置的redis.conf文件,然后定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no即可。 stop-writes-on-bgsave-error no

 

转载于:https://www.cnblogs.com/tjp40922/p/10794560.html

总结

以上是生活随笔为你收集整理的Redis报错:redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snap的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。