强制关闭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> 
相关推荐
Pniubi2 小时前
怎么排查慢SQL,怎么解决?
java·数据库·sql
薛之谦_3 小时前
Java 全栈知识体系:从 IDEA 高效开发到 JVM、并发与 Stream 实战
java·jvm·intellij-idea
文丑颜不良啊7 小时前
LeetCode2761~2780题目解析
java·leetcode
IT枫斗者枫哥8 小时前
子线程断言失败,JUnit 为什么还显示通过?
java·后端
Star(up up up)9 小时前
Redis Windows 安装教程:使用Windows 的 Redis 压缩包
redis·笔记·学习·程序人生·云原生·学习方法·改行学it
考虑考虑10 小时前
JDK27中的Set.ofLazy
java·后端·java ee
文丑颜不良啊10 小时前
LeetCode2841~2860题目解析
java·leetcode
小南家的青蛙10 小时前
Tomcat与Jetty深度对比
java·tomcat·jetty
乌暮12 小时前
Spring AOP 与 Spring 事务:用大白话彻底理解原理与实践
java·数据库·spring boot·后端·sql·学习·spring
YDS82912 小时前
Small Spring IOC篇:容器事件及其监听器
java·spring