netstat -apn | grep 8080 



[root@centos122 bin]# 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 -  


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

更多推荐