1.、windows(系统)
打开cmd .(运行中输入cmd)
netstat -ano 查看端口
netstat -aon|findstr "9050" (查看9050是或否被占用 ,如果占用则会显示下面信息)
TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016
有个2016进程占用了9050端口。(应该找到这个2016的进程,关闭该进程)
tasklist|findstr "2016" (找到2016号进程,就是下面的tor.exe程序)
tor.exe 2016 Console 0 16,064 K
在进程中结束该进程。 (如果知道tor.exe程序是什么服务开启的,可以此服务改成手动。)
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