MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.

本人花费半年的时间总结的《Java面试指南》已拿腾讯等大厂offer,已开源在github ,欢迎star!

本文GitHub https://github.com/OUYANGSIHAI/JavaInterview 已收录,这是我花了6个月总结的一线大厂Java面试总结,本人已拿大厂offer,欢迎star

原文链接:blog.ouyangsihai.cn >> MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.

一、错误信息

今天运行Redis时发生错误,错误信息如下:


(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。

二、原因

强制关闭Redis快照导致不能持久化。

三、解决方案

运行 config set stop-writes-on-bgsave-error no 命令后,关闭配置项 stop-writes-on-bgsave-error解决该问题。


root@ubuntu:/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"
(integer) 1

原文地址:https://sihai.blog.csdn.net/article/details/80071585

本人花费半年的时间总结的《Java面试指南》已拿腾讯等大厂offer,已开源在github ,欢迎star!

本文GitHub https://github.com/OUYANGSIHAI/JavaInterview 已收录,这是我花了6个月总结的一线大厂Java面试总结,本人已拿大厂offer,欢迎star

原文链接:blog.ouyangsihai.cn >> MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.


 上一篇
你所需要的java基础篇和提升篇大总结 你所需要的java基础篇和提升篇大总结
好好学java 致力于java知识分享 关注  精彩内容           如/诗 近半个月,每天一篇基础文章分享,基本把java语言的基本知识都过了一遍,也许有一些错误,或者不尽如人意的地方,还请
2021-04-04
下一篇 
Qt 编译出错 Could not create directory Qt 编译出错 Could not create directory
1、文件路径不能用中文名 2、下图中,不要勾选shadow build:后的选框 原文地址:https://sihai.blog.csdn.net/article/details/80039654
2021-04-04