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...报错解决

今天使用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.

这句话翻译过来的意思是:Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。

问题大概就是:redis备份功能出现问题,导致修改集合的命令无法使用。

解决:

键入命令:127.0.0.1:6379> config set stop-writes-on-bgsave-error no

此命令的意思是:将配置项 - 当redis备份功能有问题就不能使用写入命令 设置为 no 。

此时就可以继续操作了

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...报错解决

上一篇:sql 批量查询数据问题处理


下一篇:sqlldr某些字段无值导致加载报错