2022
我们一起努力

redis保存数据出错怎么办

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”

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

“WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.”

解决方法:

redis保存数据出错怎么办

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

赞(0)
文章名称:《redis保存数据出错怎么办》
文章链接:https://www.fzvps.com/69522.html
本站文章来源于互联网,如有侵权,请联系管理删除,本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
图片版权归属各自创作者所有,图片水印出于防止被无耻之徒盗取劳动成果的目的。

评论 抢沙发

评论前必须登录!