连接redis报错MISCONF Redis is configured to save RDB snapshots

redis.exceptions.ResponseError: 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.exceptions.ResponseError:MISCONF Redis配置为保存RDB快照,但当前无法持久保存在磁盘上。 禁用了可能修改数据集的命令,因为此实例配置为在RDB快照失败时在写入过程中报告错误(stop-writes-on-bgsave-error选项)。 请检查Redis日志以获取有关RDB错误的详细信息。

出现这类问题有大概下面几种情况:
1,磁盘出现损坏(很少出现)
2,写持久化数据的磁盘满了
3,磁盘访问不到了(针对远程存储)
4,对磁盘的访问权限不足(应该是最多发生的)

原文地址:https://www.cnblogs.com/zmldz/p/14102674.html