windows查看端口被占用情况


使用下面的命令来查看某端口被占用的情况

netstat -ano|findstr "8080"

根据PID继续查找相对应的进程

tasklist|findstr "6666"