MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

莫名其妙出现了这种错误

正文

具体报错为

(error) 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.

MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
导致本机和远程都不能写如数据。
看报错信息大大意是,redis试图存储快照,但是磁盘失败,还提示stop-writes-on-bgsave-error set disable.
所以,打开配置文件,redis.conf,搜索这一项,修改为no。
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

重启后,终于可以了。