Linux 拨号vps windows公众号手机端

redis保存数据出错怎么办

lewis 7年前 (2018-11-26) 阅读数 9 #VPS/云服务器
文章标签 redisredis错误

redis保存数据出错处理方法:在/etc/sysctl.conf配置文件中,添加:“vm.overcommit_memory = 1”,保存配置,重启redis即可。

redis保存数据出错的解决方法:

问题:Redis “MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk”

查看日志出现提示信息如:

“WARNINGovercommit_memoryissetto0!Backgroundsavemayfailunderlowmemorycondition.Tofixthisissueadd'vm.overcommit_memory=1'to/etc/sysctl.confandthenrebootorrunthecommand'sysctlvm.overcommit_memory=1'forthistotakeeffect.”

解决方法:

在/etc/sysctl.conf配置文件中,添加:“vm.overcommit_memory = 1”,保存配置,重启redis即可。


版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门