当前位置: 首页 > 工具软件 > rabbit-ex > 使用案例 >

【转】搭建rabbitmq集群时,加入集群报Error: unable to connect to nodes ['rabbit@host-10-0-0-5']: nodedown错误

章安宜
2023-12-01

今天在搭建rabbitmq 集群时,将其中一个节点加入集群时,报下面这些错误:

root@host-10-0-0-4 log]# rabbitmqctl join_cluster rabbit@host-10-0-0-5
Clustering node 'rabbit@host-10-0-0-4' with 'rabbit@host-10-0-0-5' ...
Error: unable to connect to nodes ['rabbit@host-10-0-0-5']: nodedown

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

attempted to contact: ['rabbit@host-10-0-0-5']

rabbit@host-10-0-0-5:
  * unable to connect to epmd (port 4369) on host-10-0-0-5: nxdomain (non-existing domain)


current node details:
- node name: 'rabbitmq-cli-49@host-10-0-0-4'
- home dir: /var/lib/rabbitmq
- cookie hash: OTrp4p7MdSuR1Su+mlFfQw==

 

找了好多办法都不行,后来查询说是/etc/hosts文件中配置的主机名必须是实际的主机名才可以,结果试了一下,立马就解决问题了。

详见:https://blog.csdn.net/yy4545/article/details/100523954

 类似资料: