1. 问题背景

        小编最近搭建一个SpringBoot脚手架需要用到Redis组件,于是在本地下载安装一个控制台测试使用没问题,但是启动项目时候异常日志打印出“Redis RDB异常”。

2. 问题描述

        还没来得及截图问题就解决了,只留下了“有道”上的翻译记录

        Error: Error in execution; nested exception is 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.

        MISCONF Redis 被配置保存RDB快照,但目前无法在磁盘持久存在可能修改数据集的命令禁用。有关错误详细信息,请查看Redis日志

3. 问题原因

        当前的Redis配置保存RDB快照,但当前无法在磁盘上保留,强制关闭Redis快照导致不能持久化。

4. 解决办法

        问题描述里已经提供了方法关闭配置stopwrites-onbgsaveerror 即可

方法一:执行控制台命令

方法二:直接修改redis.conf配置文件


发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注