redis启动报错问题

redis报错修改:
7859:M 03 Jul 2019 02:54:57.116 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
7859:M 03 Jul 2019 02:54:57.116 # Server initialized
7859:M 03 Jul 2019 02:54:57.116 # 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.
7859:M 03 Jul 2019 02:54:57.116 # 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.
7859:M 03 Jul 2019 02:54:57.116 * Ready to accept connections

vi /etc/sysctl.conf
vm.overcommit_memory=1
net.core.somaxconn= 1024

sysctl -p激活配置

echo never > /sys/kernel/mm/transparent_hugepage/enabled

ˆ Back To Top