首先打开cmd
输入 netstat -ano 找到需要关闭的端口号
根据pid关闭进程
taskkill /F /pid 你自己的pid
出现这个情况较多的原因是没有手动停止运行中的服务就直接关闭IDEA。