强制关闭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> 
相关推荐
RFG20122 小时前
20、详解Dubbo框架:消费方如何动态获取服务提供方地址?【微服务架构入门】
java·人工智能·后端·微服务·云原生·架构·dubbo
zjttsh3 小时前
Linux下安装Redis
java
TimberWill4 小时前
SpringBoot整合Srping Security实现权限控制
java·spring boot·后端
Renhao-Wan5 小时前
Java 算法实践(四):链表核心题型
java·数据结构·算法·链表
_codemonster6 小时前
JavaWeb开发系列(六)JSP基础
java·开发语言
万邦科技Lafite6 小时前
淘宝店铺所有商品API接口实战指南
java·数据库·mysql
dinga198510266 小时前
linux上redis升级
linux·运维·redis
jjjxxxhhh1236 小时前
【加密】-AES与对称加密
java·服务器·网络
临水逸6 小时前
飞牛fnos 2025 漏洞Java跨域URL浏览器
java·开发语言·安全·web安全
yaoxin5211236 小时前
324. Java Stream API - 实现 Collector 接口:自定义你的流式收集器
java·windows·python