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. 解决办法