redis 异常解决

异常:

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

有道翻译:

loglevel noticeredis.exceptions。ResponseError:MISCONF Redis被配置为保存RDB快照,但是它目前不能持久存储在磁盘上。可能修改数据集的命令被禁用,因为如果RDB快照失败(停止写入-on-bgsave-error选项),该实例将被配置为在写入期间报告错误。有关RDB错误的详细信息,请检查Redis日志。

解决方案:

redis-cli连接到服务器后执行以下命令:

config set stop-writes-on-bgsave-error no

posted @ 2018-08-25 11:45  huo_sun  阅读(247)  评论(0编辑  收藏  举报