Linux query tomcat 8080 port occupancy, and kill the process

netstat -apn | grep 8080



[root@centos122 bin]# netstat -apn | grep 8080 View port 8080 occupied by

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 - 


[root@centos122 bin]# kill -9 11421 kill process

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326180180&siteId=291194637