你首先需要知道你想要查询的进程的PID。这可以通过任务管理器、资源监视器或命令行工具如tasklist来获取。 使用命令行工具查询进程ID对应的端口号: 打开命令提示符(cmd)。 输入以下命令来列出所有活动的连接和监听端口,以及它们对应的进程ID: shell netstat -ano 在输出中,找到你感兴趣的进程ID对应的行。每一行都会...
windows 根据 端口号 找到进程ID PID List process by port number netstat -ano | findstr 8080 1. Proto Local Address Foreign Address State PID TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 29848 1. 2. -a– Displays all connections and listening ports. -o– Displays the owning process ID associated ...