强制关闭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> 
相关推荐
我喜欢山,也喜欢海12 小时前
Java和go在并发上的表现为什么不一样
java·python·golang
Wenzar_13 小时前
**零信任架构下的微服务权限控制:用Go实现基于JWT的动态访问策略**在现代云原生环境中,
java·python·微服务·云原生·架构
NCIN EXPE19 小时前
redis 使用
数据库·redis·缓存
lUie INGA19 小时前
在2023idea中如何创建SpringBoot
java·spring boot·后端
hERS EOUS20 小时前
nginx 代理 redis
运维·redis·nginx
geBR OTTE20 小时前
SpringBoot中整合ONLYOFFICE在线编辑
java·spring boot·后端
Porunarufu20 小时前
博客系统UI自动化测试报告
java
Aurorar0rua21 小时前
CS50 x 2024 Notes C - 05
java·c语言·数据结构
NoSi EFUL21 小时前
redis存取list集合
windows·redis·list
Deepincode21 小时前
Redis源码探究系列—SDS 扩容策略与内存预分配机制
redis