wsyxk 发表于 2013-1-15 08:16:56

windows下查询已占用端口

1.点击"开始"--"运行",输入"cmd"后点击确定按钮,进入DOS窗口

2.运行以下命令:
      >netstat -aon | findstr "80"
                ProtoLocal Address          Foreign Address      State            PID
                ================      ==============================
                TCP    0.0.0.0:80                  0.0.0.0:0                LISTENING      1688
可以看出80端口被进程号为1688的程序占用.

3.运行以下命令:
>tasklist | findstr "1688"
图像名                                                PID            会话名                  会话#       内存使用
               ========================= ====== ================ ======== ============
               inetinfo.exe                                        1688         Console                      0            2,800 K
很明显,是inetinfo占用了80端口.
页: [1]
查看完整版本: windows下查询已占用端口