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.
出现该问题的原因大致有两个
(1)硬盘空间不足
(2)内存空间不足
解决方法
(1)针对硬盘空间不足除了删除硬盘空间外,可以转存到其他路径
redis-cli
-p port
CONFIG SET dir /tmp/some/directory/other/than/var
CONFIG SET dbfilename temp.rdb
BGSAVE
(2)释放内存
echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf sysctl vm.overcommit_memory=1参数含义
本文介绍了Redis无法保存RDB快照的问题原因及解决方案,包括处理硬盘空间不足和内存不足的情况,并提供具体的配置调整和命令操作。
1万+

被折叠的 条评论
为什么被折叠?



