Redis save RDB snapshots异常
2020-11-08 本文已影响0人
Anson_1f2a
使用spring redis进行查询时报以下异常
Caused by: io.lettuce.core.RedisCommandExecutionException: 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.
使用cli进行设置
[root@localhost redis-5.0.10]# src/redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK