1.idea右下角的event log 找到真正的端口号 2.cmd打开命令行执行 netstat -ano|findstr 端口号 找到占用端口的进程 3.杀进程 taskkill -f -pid 进程端口