进入cmd netstat -ano //查出所有端口 若要制定端口可以 netstat -ano | findStr "8080" //根据pid杀掉进程 taskkill /t /f /pid 000