前端netstat查看tcp连接的状态 云博小周宇2024年5月5日2023年8月4日1 Min Read netstat -n | awk ‘/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}‘