Rabbitmq踩坑---删掉.erlang.cookie后重新启动服务报错

集群部署的时候,自己笔记本安装3台centos7 服务器【102,103,104】,各种前期准备好后,执行rabbitmqctl cluster_status发现报错,第一个想到的是cookie可能不对,检查发现三台.erlang.cookie都是一样的,仔细一看是103我改过hostname,重启后,从102拷贝过来发现还是报错,我就直接删掉了.erlang.cookie,然后又从102拷贝过来,启动rabbitmq-server start报错,提示信息如下 
22:18:50.203 [error] ===========
===========
22:18:50.204 [error] ERROR: distribution port 25672 in use by another node: rabbit@node02
ERROR: distribution port 25672 in use by another node: rabbit@node02
22:18:50.204 [error] 

22:18:51.206 [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","node02"} in context start_error
22:18:51.206 [error] CRASH REPORT Process <0.157.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","node02"}}},{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\",\"node02\"}}},{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","node02"}}},{rabbit_pre

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

用有道词典翻译下:

先查找进程  netstat -lnp | grep 25672

然后杀掉进程kill -9 xxx

重启rabbitmq-server –detached发现25672没有端口,重新firewall-cmd --add-port=25672/tcp --permanent开通端口

最后再重启一次rabbitmq-server start 成功!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值