51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

处理redis (error) MISCONF Redis is configured to save RDB snapshots

(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 for details about the RDB error.

redis 突然写不了数据了,发现报错

现象: 写不了数据

我们登录一下

redis-cli -p 6479 -a root

set num 10

然后就报上边的错误。

接解方法:

命令行输入:

 config set stop-writes-on-bgsave-error no

(错误)MISCONF Redis被配置为保存RDB快照,但它目前无法在磁盘上持久存在。可能修改数据集的命令被禁用,因为此实例被配置为在RDB快照失败时在写入期间报告错误(在bgsave错误选项上停止写入)。有关RDB错误的详细信息,请查看Redis日志。

其实是因为 被攻击了

/etc/cron.d

这个目录一直有写入

redis 漏洞 被攻击

赞(2)
未经允许不得转载:工具盒子 » 处理redis (error) MISCONF Redis is configured to save RDB snapshots