以8888为例
第一步 netstat -aon | findstr 8888

查找8888对应的程序的pid
第二步 tasklist|findstr "pid"

OK 是matlab占用了8888端口
Over!
本文介绍了一种方法来查询占用特定端口的程序。通过使用netstat和tasklist命令,可以找到占用指定端口(如8888)的应用程序及其进程ID。示例中发现MATLAB占用了8888端口。
以8888为例
第一步 netstat -aon | findstr 8888

查找8888对应的程序的pid
第二步 tasklist|findstr "pid"

OK 是matlab占用了8888端口
Over!
469

被折叠的 条评论
为什么被折叠?