windows 查看端口占用、关闭端口

cmd打卡命令窗口

1)netstat -an 查看所有活动连接

2)netstat -aon| findstr “xxxx” 找到指定端口的连接

3)taskkill  /F /PID xxxx 终止进程

原文地址:https://www.cnblogs.com/bangaj/p/9437914.html