1.根据端口号查看被占用的端口PID 运行cmd输入命令 netstat -ano|findstr "you_port" 2.通过PID查看进程 tasklist|findstr "PID" 3.通过PID关闭进程 taskkill /T /F /PID you_pid 原文参考:Windows下如何查看某个端口被谁占用 | 菜鸟教程