在windows环境中,假设我们需要查找正在占用端口7425的进程,并找到该进程的文件。 通过以下命令查找端口为7425的进程 netstat -aon|findstr "7425" 得到如下结果 TCP 0.0.0.0:7425 0.0.0.0:0 LISTENING 22824 TCP 127.0.0.1:7425 127.0.0.1:61395 CLOSE_WAIT 22824 TCP 127.0.0.1:7425 127.0.0.1:61396 CLOSE_WAIT 22824 TCP 127…