强制关闭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> 
相关推荐
一个有温度的技术博主6 分钟前
Redis主从同步原理:从全量同步到增量同步的完整解析
redis·分布式·缓存
赫瑞26 分钟前
数据结构中的排列组合 —— Java实现
java·开发语言·数据结构
小红的布丁1 小时前
单线程 Redis 的高性能之道
redis·后端
周末也要写八哥2 小时前
多进程和多线程的特点和区别
java·开发语言·jvm
惜茶2 小时前
vue+SpringBoot(前后端交互)
java·vue.js·spring boot
杰克尼3 小时前
springCloud_day07(MQ高级)
java·spring·spring cloud
NHuan^_^5 小时前
SpringBoot3 整合 SpringAI 实现ai助手(记忆)
java·人工智能·spring boot
Mr_Xuhhh5 小时前
从ArrayList到LinkedList:理解链表,掌握Java集合的另一种选择
java·数据结构·链表
错把套路当深情5 小时前
Java 全方向开发技术栈指南
java·开发语言
han_hanker5 小时前
springboot 一个请求的顺序解释
java·spring boot·后端