在IDEA终端 terminal 或CMD 命令窗口中 中输入下面命令: netstat -ano|findstr “9977” 其中9977是端口号 taskkill /f /t /im 1111 其中1111是上面命令查出来的进程ID