这篇文章上次修改于 256 天前,可能其部分内容已经发生变化,如有疑问可询问作者。

查询端口信息

netstat -ano

指定端口占用情况

netstat -aon|findstr 端口号
netstat -aon|findstr "端口号"

根据PID查看相应的进程或程序

tasklist|findstr 对应进程ID

结束进程

taskkill /f /t /im 程序名.exe