MISCONF Redis is configured to save RDB snapshots

今天在redis中执行setrange name 1 chun 命令时报了以下错误提示:redis

(error) 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快照的状态,以下:it

解决方案以下:配置

运行 config set stop-writes-on-bgsave-error no 命令im

 

关闭配置项stop-writes-on-bgsave-error解决该问题。error

相关文章
相关标签/搜索