在dos窗口下输入netstat -ano|findstr 8080(这里指所占用的端口号) taskkill /pid 6865(这里至查询出来占用8080端口的pid码) 转载于:https://www.cnblogs.com/tianhao/p/4231874.html