window下关闭占用端口使用

怎么在window下关闭端口!

1:查看特定端口被占用情况

命令:   netstat -ano 和 netstat -ano|findstr 端口号

netstat -ano:查看电脑所有端口被占用的情况:

 

 netstat -ano|findstr 端口号:查看特定端口被占用情况:

 

 

2:关闭占用端口的程序

命令 :taskkill /pid PID(进程号) /f

 

posted @ 2019-09-18 12:56  King-DA  阅读(2405)  评论(0编辑  收藏  举报