linux查询tomcat 8080端口占用,并杀死进程

netstat -apn | grep 8080


# netstat -apn | grep 8080 查看8080端口占用

tcp 0 0 :::8080 :::* LISTEN 11421/java
tcp 1002 0 ::ffff:10.0.1.122:8080 ::ffff:10.0.1.180:65000 CLOSE_WAIT -
tcp 1 0 ::ffff:10.0.1.122:8080 ::ffff:10.0.1.34:53560 CLOSE_WAIT -
tcp 1002 0 ::ffff:10.0.1.122:8080 ::ffff:10.0.1.180:49234 CLOSE_WAIT -
tcp 1001 0 ::ffff:10.0.1.122:8080 ::ffff:10.0.1.180:49254 ESTABLISHED -


# kill -9 11421 杀进程

你可能感兴趣的:(linux查询tomcat,8080端口占用,并杀死进程)