强制关闭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> 
相关推荐
两个蝴蝶飞3 小时前
Java量化系列(四):实现自选股票维护功能
java·经验分享
短剑重铸之日5 小时前
7天读懂MySQL|Day 5:执行引擎与SQL优化
java·数据库·sql·mysql·架构
酒九鸠玖5 小时前
Java--多线程
java
Dreamboat-L5 小时前
云服务器上部署nginx
java·服务器·nginx
长安er5 小时前
LeetCode215/347/295 堆相关理论与题目
java·数据结构·算法·leetcode·
cici158746 小时前
C#实现三菱PLC通信
java·网络·c#
k***92167 小时前
【C++】继承和多态扩展学习
java·c++·学习
weixin_440730507 小时前
java结构语句学习
java·开发语言·学习
JIngJaneIL7 小时前
基于java+ vue医院管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
Coder_Boy_7 小时前
Spring AI 源码大白话解析
java·人工智能·spring