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

时间:2020-12-28 11:23:22   收藏:0   阅读:0

8012为端口号

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

netstat -aon|findstr "8012"

比如结果是5484

 

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

tasklist|findstr "5484"

 

3.关闭进程

taskkill -PID 5484 -F

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!