Linux 网络内核参数
- /proc/sys/net/core/somaxconn
系统中每一个端口的最大监听队列长度,default 128
defines a ceiling value for the backlog argument of listen
net.core.somaxconn = 2048
- /proc/sys/net/ipv4/ip_nonlocal_bind /proc/sys/net/ipv6/ip_nonlocal_bind
允许绑定不存在的IP,默认0
If set, allows process to bind() to non-local IP addresses
net.ipv4.ip_nonlocal_bind = 1