1.cmd命令进入dos环境下 2.netstat -aon|findstr 8080(查找占用端口号的pid) 3.taskkill -pid 进程号 -f(杀死占用端口的服务) 转载于:https://www.cnblogs.com/Life-is-Demo/p/10949922.html