Windows 查找端口号关闭端口号关闭进程

8012为端口号

1.查看端口占用程序的ID号

netstat -aon|findstr "8012"

比如结果是5484

 

2.查看ID对应的程序进程

tasklist|findstr "5484"

 

3.关闭进程

taskkill -PID 5484 -F

成功: 已终止 PID 为 5484 的进程。

 

posted @ 2020-12-22 10:13  陈sir-  阅读(183)  评论(0编辑  收藏  举报