【发布时间】:2016-03-24 18:33:33
【问题描述】:
我是 rabbitMQ 和 Linux 的新手。 我正在关注聚类指南 https://www.rabbitmq.com/clustering.html
我有三个节点都运行 CentOS 7(在具有静态 IP 的虚拟机上)。
我已将 erlang cookie 复制到所有机器上。
我在 hosts 文件中设置了主机如下 这在机器 2 上
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.198.100 rabbit1
127.0.0.1 rabbit2
192.168.198.102 rabbit3
但是 hen 试图将 rabbit2 加入到 rabbit1 使用
rabbitmqctl join_cluster rabbit@rabbit1
我收到以下错误
Clustering node rabbit@localhost with rabbit@rabbit1 ...
Error: unable to connect to nodes [rabbit@rabbit1]: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit@rabbit1]
rabbit@rabbit1:
* connected to epmd (port 4369) on rabbit1
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?
* suggestion: is the Erlang distribution using TLS?
current node details:
- node name: 'rabbitmq-cli-72@localhost'
- home dir: /var/lib/rabbitmq
- cookie hash: YlXmRhqgpV9H7lgqXslI1g==
谁能帮我弄清楚这是怎么回事?
【问题讨论】:
-
你能从
rabbit2pingrabbit1吗? -
@DavinTryon:是的,我可以。
标签: rabbitmq cluster-computing