强制关闭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 小时前
SpringBoot 拦截器
java·spring boot·spring
送秋三十五2 小时前
一次大文件处理性能优化实录————Java 优化过程
java·开发语言·性能优化
雨中飘荡的记忆2 小时前
千万级数据秒级对账!银行日终批处理对账系统从理论到实战
java
jbtianci2 小时前
Spring Boot管理用户数据
java·spring boot·后端
Sylvia-girl2 小时前
线程池~~
java·开发语言
魔力军2 小时前
Rust学习Day3: 3个小demo实现
java·学习·rust
luffy54592 小时前
windows下通过docker-desktop创建redis实例
windows·redis·docker·容器
时艰.2 小时前
java性能调优 — 高并发缓存一致性
java·开发语言·缓存
落花流水 丶2 小时前
Java 多线程完全指南
java
jxy99982 小时前
mac mini 安装java JDK 17
java·开发语言·macos