-MISCONF Redis is configured to save RDB snapshots ... RDB error

Redis 远程突然连接错误,提示RDB ERROR??系统是Linux

Response received : -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.

 暂时的解决方法:

  1. 本地连接:redis-cli -h 127.0.0.1 -p 6379
  2. 运行 config set stop-writes-on-bgsave-error no

如果出现 Redis (error) NOAUTH Authentication required 说明你的reids设置了密码,需要先输入密码,如下

auth "yourpassword"

例:假如你的密码为admin,则输入 auth admin

 说明:

“stop-writes-on-bgsave-error” 选项默认是yes,设置为 no,即当bgsave快照操作出错时停止写数据到磁盘。

原因:

由于我的服务器真的出现了磁盘爆满的情况,使用100%,导致redis写时报错

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章