44969:M 23 Nov 2018 12:57:46.920 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 44969:M 23 Nov 2018 12:57:46.920 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted. 44969:M 23 Nov 2018 12:57:46.920 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
44969:M 23 Nov 2018 12:57:46.921 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 44969:M 23 Nov 2018 12:57:46.921 # Server initialized 44969:M 23 Nov 2018 12:57:46.921 # 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.
44969:M 23 Nov 2018 12:57:46.922 # 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# 执行以下命令 # echo never > /sys/kernel/mm/transparent_hugepage/enabled
# 编辑配置文件,在文件的末尾添加以下内容 # vim /etc/rc.local iftest -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled fi