redis启动WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

内核参数默认128,对于负载很大的服务是不够的。改为2048或者更大

echo 2048 >   /proc/sys/net/core/somaxconn    ##系统重启后失效

vi /etc/sysctl.conf

net.core.somaxconn = 2048

保存,然后

sysctl -p

参考链接:
http://www.cnblogs.com/fczjuever/archive/2013/04/17/3026694.html

猜你喜欢

转载自www.cnblogs.com/mclzy/p/9088310.html