当前位置:   article > 正文

RabbitMQ启动报错ERROR: distribution port 25672 in use by another node: 解决方案_启动mq显示25672被占用

启动mq显示25672被占用
  1. Configuring logger redirection
  2. 18:34:18.767 [error]
  3. 18:34:18.786 [error] BOOT FAILED
  4. BOOT FAILED
  5. 18:34:18.786 [error] ===========
  6. ===========
  7. 18:34:18.786 [error] ERROR: distribution port 25672 in use by another node: rabbit@localhost
  8. ERROR: distribution port 25672 in use by another node: rabbit@localhost
  9. 18:34:18.787 [error]
  10. 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
  11. 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
  12. {"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,[]]}}}"}
  13. Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","localhost"}}},{rabbit_
  14. 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.看到以下画面则表示启动成功

  1. Configuring logger redirection
  2. ## ## RabbitMQ 3.8.14
  3. ## ##
  4. ########## Copyright (c) 2007-2021 VMware, Inc. or its affiliates.
  5. ###### ##
  6. ########## Licensed under the MPL 2.0. Website: https://rabbitmq.com
  7. Doc guides: https://rabbitmq.com/documentation.html
  8. Support: https://rabbitmq.com/contact.html
  9. Tutorials: https://rabbitmq.com/getstarted.html
  10. Monitoring: https://rabbitmq.com/monitoring.html
  11. Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
  12. /usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log
  13. Config file(s): (none)
  14. Starting broker... completed with 6 plugins.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/558359
推荐阅读
相关标签
  

闽ICP备14008679号