Chinaunix首页 | 论坛 | 博客
  • 博客访问: 105614
  • 博文数量: 21
  • 博客积分: 1460
  • 博客等级: 上尉
  • 技术积分: 270
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-07 22:04
文章分类

全部博文(21)

文章存档

2010年(15)

2009年(2)

2008年(4)

分类: LINUX

2010-07-16 12:23:09

假如我们需要确定谁占用了我们的9050端口

1、Windows平台
在windows命令行窗口下执行:
C:\>netstat -aon|findstr "9050"
TCP    127.0.0.1:9050         0.0.0.0:0              LISTENING       2016

看到了吗,端口被进程号为2016的进程占用,继续执行下面命令:

C:\>tasklist|findstr "2016"
tor.exe                     2016 Console                 0     16,064 K

很清楚吧,tor占用了你的端口

2、AIX

$netstat -Aan|grep 30542
f10000f303321b58 tcp4 0 0 *.30542 *.* LISTEN
$rmsock f10000f303321b58 tcpcb
The socket 0x3321800 is being held by proccess 692476 (db2sysc).

3、Linux

$netstat -pan|grep 2809
tcp    0   0 0.0.0.0:2809   0.0.0.0:*   LISTEN   9493/java
del.icio.us Tags: aix,windows,tips

阅读(1161) | 评论(0) | 转发(0) |
0

上一篇:kernelnewbies.org

下一篇:ubuntu 察看端口

给主人留下些什么吧!~~