强制关闭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> 
相关推荐
sjsjsbbsbsn8 分钟前
大模型核心知识总结
java·人工智能·后端
白晨并不是很能熬夜1 小时前
【PRC】第 2 篇:Netty 通信层 — NIO 模型 + 自定义协议 + 心跳
java·开发语言·后端·面试·rpc·php·nio
斯普润布特1 小时前
物联网-Spring+Netty 框架整合
java·物联网·netty
简简单单就是我_hehe1 小时前
后端链路追踪局部采集和全量采集配置说明
java·开发语言
zshs0001 小时前
#从偶发无字幕到补偿探测链路:一次 B 站字幕导入问题的完整收敛过程
java·后端·重构
存在的五月雨2 小时前
SpringBoot 基于数据库的动态定时任务管理器实现方案
java·spring boot
椰羊~王小美2 小时前
@RequestMapping注解的各个属性作用
java
Yeh2020583 小时前
request与response笔记
java·前端·笔记
程序员老邢3 小时前
【产品底稿 07】商助慧 Admin 运维模块落地:从 “能跑” 到 “能运维”,3 个页面搞定日常排障
java·运维·经验分享·spring boot·后端
Fᴏʀ ʏ꯭ᴏ꯭ᴜ꯭.3 小时前
《redis-cluster 集群部署完全手册(含扩容+缩容)》
数据库·redis·缓存