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.
WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
以上为redis开机自启动的时候遇到的问题
解决方法:
1进入单用户模式:
开机进入centos读秒之前按键盘任意键进入,选择kernel ......,按e进入命令行编辑,键入single回车 ,按b启动系统,即进入单用户模式
vi /etc/sysctl.conf 添加
overcommit_memory=1
net.core.somaxconn = 2048
保存,sysctl -p
echo never > /sys/kernel/mm/transparent_hugepage/enabled
# grep AnonHugePages /proc/meminfo
If the output contains a line like