美文网首页
Redis save RDB snapshots异常

Redis save RDB snapshots异常

作者: Anson_1f2a | 来源:发表于2020-11-08 14:35 被阅读0次

使用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

相关文章

网友评论

      本文标题:Redis save RDB snapshots异常

      本文链接:https://www.haomeiwen.com/subject/znlhbktx.html