#殺掉8080端口的進程tomcat
netstat -nlp |grep :8080 |grep -v grep|awk '{print $7}' |awk -F '/' '{print $1}' |xargs kill -9進程
#查詢包含tomcat的進程號awk
ps -ef|grep tomcat|grep -v grep|awk '{print $2}'grep
#殺掉全部包含‘tomcat’的進程查詢
ps -ef|grep tomcat|grep -v grep|awk '{print $2}' |xargs kill -9
端口