Linux Centos7 listen tcp 0.0.0.0:15672: bind: address already in use 端口被占用,解决办法

问题:

      从下图可以看到15672的端口被占用了,那怎么解决呢???

Linux Centos7 listen tcp 0.0.0.0:15672: bind: address already in use 端口被占用,解决办法

 

  解决:

netstat -nap 查看程序运行的pid,查找15672端口,可以发现确实被占用了,记住PID

当然也可以直接找到某个端口是否被占用,命令:netstat -nap | grep 15672

Linux Centos7 listen tcp 0.0.0.0:15672: bind: address already in use 端口被占用,解决办法

 

 kill PID,杀死该进程 ,这里是kill 2407

 

Linux Centos7 listen tcp 0.0.0.0:15672: bind: address already in use 端口被占用,解决办法

 

转:https://blog.csdn.net/qq_37495786/article/details/83274290

 

 

Linux Centos7 listen tcp 0.0.0.0:15672: bind: address already in use 端口被占用,解决办法

上一篇:Linux学习30-如何根据端口号查看进程PID


下一篇:SQL中关于rowcount的用法