修改系统的TIME_WAIT等待时间和其它的TCP属性

版权声明:http://blog.csdn.net/robertkun https://blog.csdn.net/robertkun/article/details/50117033

robert@ubuntu-vm:~$ vim /etc/sysctl.conf

在文件末尾添加:

net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 1024    65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000

执行: /sbin/sysctl -p



阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页