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

2018/11/10 posted in  Redis SpringBoot

今天使用SpringBoot操作Redis的时候,报错

io.lettuce.core.RedisCommandExecutionException: 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.exceptions。MISCONF Redis配置为保存RDB快照,但目前无法在磁盘上持久保存。可以修改数据集的命令被禁用。有关错误的详细信息,请查看Redis日志。

这是由于强制停止redis快照,不能持久化引起的,

解决方案如下:

打开redis-cli

输入 config set stop-writes-on-bgsave-error no命令

解决!