window 查看端口占用情况

查看哪个进程在用

netstat -aon|findstr "8080"   

 TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       6252

根据查出的进程号查出哪个应用在用

tasklist|findstr "6252"

nginx.exe                     6252 Services                   0      1,896 K

原文地址:https://www.cnblogs.com/chenqingbin/p/14108498.html