查看当前端口被占用的进程

1:首先根据端口号

netstat -Aan | grep 9001 

返回

f1000089c27a2358 tcp4 0 0 *.9001 *.* LIST EN 

 

2:rmsock f100089c27a2358 tcpcb

The socket 0x702f6800 is being held by proccess 4986 (inetd).

得到id为4986

 

3:ps -ef |grep 4986

即可看到是什么进程。

 

两外可以找个软件:lsof,可以在http://aixpdslib.seas.ucla.edu/packages/lsof.html下载。

然后lsof -i:9001即可查看此端口的进程。 

posted on 2012-12-12 10:10  timelyxyz  阅读(208)  评论(0编辑  收藏  举报

导航