Linux下查 端口 被那个进程占用了。

1. 比如要查4873 端口是那个 进程占用了?

       [root@dgweb240sp bin]# netstat -apn|grep 4873

 tcp        0      0 127.0.0.1:4873          0.0.0.0:*               LISTEN      4083/sinopia  

 2.   知道了进程PID为4490,则可查询4490具体的进程资料

       [root@dgweb240sp bin]# ps -ef |grep 4490

 3.  强制杀死进程

       [root@dgweb240sp bin]# kill -9 4490

猜你喜欢

转载自blog.csdn.net/qq_38719039/article/details/82714133
今日推荐