怎样查看端口占用情况

步骤/方法

  1.  

    开始-运行-输入cmd-打开命令行窗口

  2.  

    输入:netstat -aon|findstr "端口号"

    如输入netstat -aon|findstr "1433",回车,有以下信息显示TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 1956

    其中"1956"为占用"1433"端口的进程号

  3. 3

    输入:tasklist|findstr "进程号"

    如输入tasklist|findstr "1956",回车,有以下信息显示

    sqlservr.exe 1956 Console 0 5,556 K

    其中"sqlservr.exe"即占用"1433"端口的进程名

    END

注意事项

  • 以上方法仅在windows操作系统中适用。

原文地址:https://www.cnblogs.com/yxlblogs/p/3811617.html