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
[root@dgweb240sp bin]# netstat -apn|grep 4873
tcp 0 0 127.0.0.1:4873 0.0.0.0:* LISTEN 4083/sinopia
[root@dgweb240sp bin]# ps -ef |grep 4490
[root@dgweb240sp bin]# kill -9 4490