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

327

被折叠的 条评论
为什么被折叠?



