一、报错概述
1.1、报错
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is 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.
文章来源:https://www.toymoban.com/news/detail-730212.html
1.2、报错原因
我检查了Redis服务已经启动,但还是继续报这个错误,查了之后才知道原因,是因为强制把Redis快照关闭了导致不能持久化的问题,通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。文章来源地址https://www.toymoban.com/news/detail-730212.html
二、解决方法
2.1、命令行修
到了这里,关于Spring Cloud项目后台报错:org.springframework.data.redis.RedisSystemException(Redis-6.2.6 CentOS 7)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!