强制关闭Redis快照导致不能持久化

(error) 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 fordetails about the RDB error.

解决方案:运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

bash 复制代码
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set foo tar
OK
127.0.0.1:6379> get foo
"tar"
127.0.0.1:6379> 
相关推荐
阳光宅男@李光熠13 小时前
【电子通识】一起学习TDK的EMC基础——电池兼容设计方法概述
java·前端·数据库
张宜强13 小时前
025 安居租赁 · 房屋租赁平台
java·课程设计
Java_2017_csdn13 小时前
ReentrantLock 与 Redis RLock 对比解读
java
YDS82913 小时前
Small Spring IOC篇:实现 Bean 的定义、注册、获取
java·spring
边境悍匪13 小时前
蜗牛学苑 Java 智能体学习 Day45|Knife4j+SpringBoot3、书城项目整合 MyBatis 思维导图复盘
java·开发语言·vue.js·学习·spring
需要82614 小时前
Arthas 一个命令排查线上问题
java·jvm·spring·spring cloud
Kyrie_kk14 小时前
Java--ProcessBuilder操作系统进程
java·后端
SamDeepThinking14 小时前
关于java final关键字的可见性
java·后端·面试
Wang's Blog14 小时前
Java 项目实战: 外卖平台-MyBatis-Plus分页插件与员工分页查询
java·项目开发
MetaLite14 小时前
全网最好的SpringBoot接口请求对象设计
java·spring boot·后端