Redis启动警告问题的解决
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.o vercommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect意思是:overcommit_memory参数设置为0!在内存不足的情况下,后台程序save可能失败。建议在文件 /etc/sysctl.conf 中将overcommit_memory修改为1。然后重启或运行命令的sysctl vm.overcommit_memory=1'将会生效
临时解决方法:echo "vm.overcommit_memory=1" > /etc/sysctl.conf
永久解决方法:将其写入/etc/sysctl.conf文件中。
参考:有关linux下redis overcommit_memory的问题
页:
[1]