linux 端口号、进程id、杀进程、查询tcp的连接(各种状态的)

sudo netstat -antup
kill -s 9 50713
netstat -n | grep 61616
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

原文地址:https://www.cnblogs.com/jswang/p/8037611.html