1.win+r弹出程序框——输入cmd 2.输入 netstat -ano |findstr (需要关闭的端口——以8080端口为例) 3.输入taskkill /t /f /pid (根据端口得到的进程号) 或者使用 taskkill /pid 进程号 -t -f都可以