查看端口被占用的进程号然后结束进程(解决端口被进程占用的问题) 在dos窗口下输入netstat -ano|findstr 8080(这里指所占用的端口号) taskkill /pid 6865(这里至查询出来占用8080端口的pid码)