问题:

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

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

 

  解决:

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

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

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

 

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

 

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