windows 查看端口占用

netstat -ano  #查看所有正在使用的端口,注意stat没有e

netstat -ano | findstr 8080 #查看指定的端口,端口号引不引都行

找到pid,打开任务管理器,结束该pid对应的进程。

原文地址:https://www.cnblogs.com/chy18883701161/p/12420221.html