强制关闭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> 
相关推荐
菜鸟小九39 分钟前
JUC(入门1-3章)
java·juc
LJianK11 小时前
Java中的类、普通类,抽象类,接口的区别
java·开发语言
LiLiYuan.1 小时前
【Java线程 vs 虚拟机线程】
java·开发语言
2402_881319302 小时前
跨服务通信兜底机制-Java 回传失败无持久重试队列,报告可能静默丢失。
java·开发语言·python
明灯伴古佛2 小时前
面试:对Spring AOP的理解
java·spring·面试
Nyarlathotep01132 小时前
ConcurrentHashMap源码分析
java·后端
Barkamin2 小时前
多线程简单介绍
java·开发语言·jvm
2402_881319303 小时前
引入 Redis 分布式锁解决并发脏写 (Dirty Write)-AI模拟面试的构建rag部分
redis·分布式·面试
小比特_蓝光3 小时前
算法篇二----二分查找
java·数据结构·算法
田梓燊3 小时前
leetcode 56
java·算法·leetcode