netstat -ano 【找出端口号】
netstat -ano | findstr 8080 【找出8080端口号】
找到后查看pid输入以下指令
taskkill -pid 214 -f 【关闭pid为214的进程】
--------------分割线----------
我怎么老是会忘了