1. 统计连接状态
netstat -n | awk '/^tcp/ {++State[$NF]} END {for(s in State) print s, State[s]}'
CLOSE_WAIT
ESTABLISHED
SYN_SENT
https://www.infoq.cn/article/linux-networking-performance-analytics
1. 统计连接状态
netstat -n | awk '/^tcp/ {++State[$NF]} END {for(s in State) print s, State[s]}'
CLOSE_WAIT
ESTABLISHED
SYN_SENT
https://www.infoq.cn/article/linux-networking-performance-analytics