在Windows系统中,根据进程名称或PID查看端口号的命令是"netstat"。具体的命令格式如下:

  1. 根据进程名称查看端口号:

    netstat -ano | findstr "进程名称"
    

    例如,要查看名为"chrome.exe"的进程所占用的端口号,可以使用以下命令:

    netstat -ano | findstr "chrome.exe"
    
  2. 根据进程PID查看端口号:

    netstat -ano | findstr "PID"
    

    例如,要查看PID为1234的进程所占用的端口号,可以使用以下命令:

    netstat -ano | findstr "1234"
    

执行上述命令后,会显示与进程名称或PID相关联的端口号信息。

windows系统根据进程名称PID查看端口号命令是什么

原文地址: https://www.cveoy.top/t/topic/iH7w 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录