redis手动启动警告处理

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/mzg5050/article/details/102720800

# redis-server

4093:M 24 Oct 12:32:48.592 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn                         is set to the lower value of 128.
4093:M 24 Oct 12:32:48.592 # Server started, Redis version 3.0.7
4093:M 24 Oct 12:32:48.592 # 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_m                        emory=1' for this to take effect.
4093:M 24 Oct 12:32:48.593 # 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_hugep                        age/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarte                        d after THP is disabled.
4093:M 24 Oct 12:32:48.593 * The server is now ready to accept connections on port 6379
 

fix所有警告即可

猜你喜欢

转载自blog.csdn.net/mzg5050/article/details/102720800