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
Linux查找8080进程并杀掉该进程 netstat -apn | grep 8080
最新推荐文章于 2024-04-12 09:05:11 发布