IDEA报错解决-端口被占用

IDEA不正常闪退了一次之后再次运行失败,显示报错:
【 Identify and stop the process that’s listening on port 8080 or confgure this application to listen on another port.】
意思是8080这个端口已经被某个进程使用,需要指定其他端口或处理这个占用的进程。

解决方案

1.先用lsof -i tcp:xxxx 查看使用该端口的进程PID

lsof -i tcp:8080

在这里插入图片描述

2.用kill PID杀死这个进程,释放端口

kill 12135

猜你喜欢

转载自blog.csdn.net/wangzaiyouzr/article/details/136516765