Error: unable to connect to node rabbit@localhost: nodedown

报错现象

[root@controller ~]# rabbitmqctl add_user openstack RABBIT_PASS
Error: unable to connect to node rabbit@localhost: nodedown

DIAGNOSTICS
===========

attempted to contact: [rabbit@localhost]

rabbit@localhost:
  * connected to epmd (port 4369) on localhost
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed

  * Hostname mismatch: node "rabbit@controller" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@controller"
..........

解决方法

注:将进程杀掉
kill -9

ps -ef | grep rabbitmq | grep -v grep | awk '{print $2}' | xargs kill -9

启动rabbitmq-server

[root@controller ~]#  systemctl start rabbitmq-server

查询rabbitmq状况

[root@controller ~]# rabbitmqctl status
Status of node rabbit@localhost
[{pid,34251},
 {running_applications,
     [{rabbit,"RabbitMQ","3.6.16"},
      {mnesia,"MNESIA  CXC 138 12","4.14.3"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.3.2"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.6.16"},
      {xmerl,"XML parser","1.3.14"},
      {ssl,"Erlang/OTP SSL application","8.1.3.1"},
      {os_mon,"CPO  CXC 138 46","2.4.2"},
      {compiler,"ERTS  CXC 138 10","7.0.4.1"},
      {public_key,"Public key infrastructure","1.4"},
      {crypto,"CRYPTO","3.7.4"},
.......

再次验证

[root@controller ~]# rabbitmqctl add_user openstack RABBIT_PASS
Creating user "openstack"
  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值