报错:搭建openstack,创建消息队列用户失败

在尝试使用rabbitmqctl命令创建名为openstack的用户时,遇到节点down的错误。诊断显示主机名不匹配导致Erlang分布失败。问题根源在于在一个新的bash shell中执行命令。解决方案是退出当前shell,回到原始shell执行命令,最终成功创建了用户。

执行创建消息队列用户时:

[root@ct ~]# 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@ct" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@ct"


current node details:
- node name: 'rabbitmq-cli-70@ct'
- home dir: /var/lib/rabbitmq
- cookie hash: JUOSnyAarD/iR1GN1NJGTQ==

解决:无其他问题,原来是由于# bash 又开了一个shell,# exit 退出到原来的shell执行就行,

[root@ct ~]# exit
exit
[root@localhost yum.repos.d]# exit
登出

Connection closed by foreign host.

Disconnected from remote host(最小化1) at 13:46:32.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ 

Connecting to 192.168.247.11:22...  #重新连接
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Fri Dec 11 19:42:30 2020
[root@ct ~]# rabbitmqctl add_user openstack RABBIT_PASS
Creating user "openstack"   #创建成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值