高并发报Cannot assign requested address错误TIME_WAIT过多
在/etc/sysctl.conf文件下面加入
net.ipv4.ip_local_port_range = 1024 65535 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_timestamps=1 net.ipv4.tcp_fastopen = 3
执行下面命令生效
sysctl -p
若文章对您有帮助,帮忙点个赞!
(微信扫码即可登录,无需注册)