MAC下address already in use解决方法(端口被占用)

Posted live4m

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MAC下address already in use解决方法(端口被占用)相关的知识,希望对你有一定的参考价值。

问题:

MAC下address already in use解决方法(端口被占用)

做法:

先执行
sudo lsof -i:(端口号)
能看到占用该端口的PID
再执行
sudo kill -9 (刚刚看到的的PID)
杀死进程即可.

以上是关于MAC下address already in use解决方法(端口被占用)的主要内容,如果未能解决你的问题,请参考以下文章

IDEA 启动报错: Address already in use bind

IDEA 启动报错: Address already in use bind

nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)

activemq:Address already in use

activemq:Address already in use

Linux下Socket编程的端口问题( Bind error: Address already in use )