1、首先查出占用端口的进程ID
netstat -ano | findstr 8080
2、杀死该进程
taskkill /f /PID // 上一步查到的进程ID
taskkill /pid 20892 /f // 成功: 已终止 PID 为 20892 的进程。
常见命令:端口被占用如何做
原文:https://www.cnblogs.com/goloving/p/14872384.html