启动Redis时提示:
13190:M 12 Apr 17:29:01.975 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
解决:
echo 2048> /proc/sys/net/core/somaxconn
或者:
在/etc/sysctl.conf中添加如下
net.core.somaxconn = 2048
然后在终端中执行
sysctl -p
该参数可参考《linux中内核参数somaxconn》