https://gist.github.com/xuyanke/d56b89306a1b778db205
只需vi 编辑/etc/sysctl.conf
在里面加入这行:
net.ipv4.tcp_tw_reuse = 1
另外,观察TIME_WAIT每秒钟的变化的命令是:
watch -n 1 "netstat -nt | grep TIME_WAIT | wc -l"
https://gist.github.com/xuyanke/d56b89306a1b778db205
只需vi 编辑/etc/sysctl.conf
在里面加入这行:
net.ipv4.tcp_tw_reuse = 1
另外,观察TIME_WAIT每秒钟的变化的命令是:
watch -n 1 "netstat -nt | grep TIME_WAIT | wc -l"