RabbitMQ启动报错ERROR: distribution port 25672 in use by another node: 解决方案

Configuring logger redirection
18:34:18.767 [error] 

18:34:18.786 [error] BOOT FAILED
BOOT FAILED
18:34:18.786 [error] ===========
===========
18:34:18.786 [error] ERROR: distribution port 25672 in use by another node: rabbit@localhost
ERROR: distribution port 25672 in use by another node: rabbit@localhost
18:34:18.787 [error] 

18:34:19.788 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {dist_port_already_used,25672,"rabbit","localhost"} in context start_error
18:34:19.790 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","localhost"}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,\"rabbit\",\"localhost\"}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","localhost"}}},{rabbit_

Crash dump is being written to: erl_crash.dump...done

解决方法:

1. 输入以下命令

~ ps -ef | grep rabbitmq

 得到以下信息

 501   608     1   0 17May21 ??         0:00.01 /bin/sh /usr/local/opt/rabbitmq/sbin/rabbitmq-server

2. 使用 kill -9 命令杀掉rabbitmq进程

kill -9 608

3. 进入/usr/local/Cellar/rabbitmq/3.8.14目录,启动rabbitmq

./sbin/rabbitmq-server

4.看到以下画面则表示启动成功

Configuring logger redirection

  ##  ##      RabbitMQ 3.8.14
  ##  ##
  ##########  Copyright (c) 2007-2021 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Doc guides: https://rabbitmq.com/documentation.html
  Support:    https://rabbitmq.com/contact.html
  Tutorials:  https://rabbitmq.com/getstarted.html
  Monitoring: https://rabbitmq.com/monitoring.html

  Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
        /usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log

  Config file(s): (none)

  Starting broker... completed with 6 plugins.

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值