日期:2014-05-16  浏览次数:20673 次

Windows ·上查找一个端口是那个进程使用中
① 查找8080端口
C:\Documents and Settings\zhouhg>netstat -aon|findstr "8080"
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       1840
  TCP    192.168.0.1:8080       192.168.0.1:1105       TIME_WAIT       0
  UDP    0.0.0.0:8080           *:*                                    1840

② 安装上面查找的UID端口,再查找那个进程使用
C:\Documents and Settings\zhouhg>tasklist|findstr "1840"
Kuaiwan.exe                 1840 Console                 0     18,416 K

③ 把使用中的进程杀掉
C:\Documents and Settings\zhouhg>taskkill /f /t /im Kuaiwan.exe
成功: PID 2816 の子プロセスを持つPID 1840 のプロセスを終了しました。
成功: PID 1840 の子プロセスを持つPID 572 のプロセスを終了しました。