Redis 无法持久化到硬盘错误:not able to persist on disk.

错误提示:

(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 日志发现了是权限问题

12402:C 26 Nov 18:06:13.077 # Failed opening the RDB file root (in server root dir /var/spool/cron) for saving: Permission denied
30640:M 26 Nov 18:06:13.177 # Background saving error

换 root 用户启动 reids,或者使用 chown 命令授权即可。chown 命令使用

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容