以杀掉8080端口的进程为例:
# |<- 按端口查pid ->|<- 过滤掉额外信息 ->|<-去重->|
kill -9 `lsof -i:39290 |awk '{print \$2}'|grep -o '[0-9]*'|sort -u`
#使用ssh:
ssh root@192.168.11.100 "kill -9 `lsof -i:8080 |awk '{print \$2}'|grep -o '[0-9]*'|sort -u`"