强制关闭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> 
相关推荐
月落归舟1 分钟前
深入剖析乐观锁背后的原理
java·乐观锁
SimonKing14 分钟前
OpenCode 在 IDEA 中使用 ACP 协议 VS 直接使用 TUI,哪个编程方式更是你的菜?
java·后端·程序员
NE_STOP22 分钟前
Redis--持久化之AOF
java
budingxiaomoli23 分钟前
注册中心的其他实现-Nacos
java·spring cloud·微服务
大大大大晴天️34 分钟前
Flink技术实践-Flink重启策略选型指南
java·大数据·flink
ffqws_40 分钟前
Spring @Transactional 注解详解:从入门到避坑
java·数据库·后端·spring
xuhaoyu_cpp_java41 分钟前
单调栈(算法)
java·数据结构·经验分享·笔记·学习·算法
黑夜里的小夜莺1 小时前
黑马点评登录成功后点击【我的】会跳转到登录页面 BUG 修复
java·bug
wuyikeer1 小时前
Java进阶——IO 流
java·开发语言·python
何中应1 小时前
Redis集群搭建
数据库·redis·缓存