强制关闭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> 
相关推荐
用户094248568034 小时前
Redis 实战修炼与原理进阶专栏大纲
redis·快应用·源码阅读
geats人山人海4 小时前
java 7异常
android·java·开发语言
斯内普吖4 小时前
(开源)线上花店系统实战指南 基于 Java + SSM + Vue + MySQL
java·vue.js·mysql·开源
duxingzhe03114 小时前
我的一些书
java·数据库·tomcat·数据库开发·etl工程师
2603_965148114 小时前
商品价格监控 API 接口:从原理到实战的完整指南
java·前端·数据库·python·生活
瑞克-桑切斯4 小时前
2、Shell 条件语句
java·linux·服务器
Pniubi4 小时前
分片的意义?
java·开发语言
酷虎软件4 小时前
视频加字幕怎么制作
java·前端·音视频
Wang's Blog4 小时前
Java 项目实战: 交友项目 - 阿里云概述与项目中的云服务选型
java·阿里云·交友
2601_962071005 小时前
Kimi K3 vs DeepSeek V4-Pro实测对比:2026年同一入口十道题,耗时与token消耗差在哪
android·java·数据库