强制关闭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> 
相关推荐
程序员夏洛1 小时前
Redis 数据过期后的删除策略是什么?
数据库·redis·缓存
鱼鳞_1 小时前
热门八股-Redis
数据库·redis·缓存
CoderYanger1 小时前
A.每日一题:输入单词需要的最少按键次数 Ⅰ+Ⅱ
java·数据结构·算法·leetcode·面试
Cosolar1 小时前
一文弄懂 Agent Harness 与 Agent Runtime 的区别
java·后端·github
吴声子夜歌1 小时前
Java——类、对象及方法(一)
java·开发语言
程序员夏洛1 小时前
Redis 的持久化机制有哪些?
java·数据库·redis
凯尔萨厮1 小时前
Java学习笔记十(注解)
java·笔记·学习
钱栈up2 小时前
VSCode 调试多模块 Maven + Spring Boot 后端:从启动失败到一次跑通
java·spring boot·maven
uoKent2 小时前
c++中new和malloc的区别
java·jvm·c++
十五喵源码网2 小时前
基于springboot2+vue2的疾病防控综合系统
java·毕业设计·springboot·论文笔记