强制关闭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> 
相关推荐
好家伙VCC1 天前
**基于RISC-V架构的嵌入式系统开发:从零开始构建高效低功耗应用**在当前物联网(IoT)和边缘计
java·python·物联网·架构·risc-v
wyu729611 天前
Spring框架学习笔记:从IoC到声明式事务
java
qqacj1 天前
Spring Security 官网文档学习
java·学习·spring
Rsun045511 天前
10、Java 桥接模式从入门到实战
java·开发语言·桥接模式
金銀銅鐵1 天前
[Java] 从 class 文件看 cglib 对 MethodInterceptor 的处理 (下)
java·后端
lee_curry1 天前
Java中关于“锁”的那些事
java·线程·并发·juc
pearlthriving1 天前
c++当中的泛型思想以及c++11部分新特性
java·开发语言·c++
亚空间仓鼠1 天前
NoSQL数据库Redis(三):主从复制
redis·bootstrap·nosql
梦魇星虹1 天前
idea Cannot find declaration to go to
java·ide·intellij-idea
小雅痞1 天前
[Java][Leetcode hard] 42. 接雨水
java·开发语言·leetcode