rabbitmq 的错误记录

集群添加:

rabbitmqctl join_cluster rabbit@1

错误提示:

Clustering node rabbit@2 with rabbit@1 ...

Error: unable to connect to nodes [rabbit@1]: nodedown

DIAGNOSTICS

===========

attempted to contact: [rabbit@1]

rabbit@1:

  * connected to epmd (port 4369) on 1

  * epmd reports node 'rabbit' running on port 25672

  * TCP connection succeeded but Erlang distribution failed

  * suggestion: hostname mismatch?

  * suggestion: is the cookie set correctly?

current node details:

- node name: 'rabbitmq-cli-3397@2'

- home dir: /var/lib/rabbitmq

- cookie hash: zd2ADg4jXfWNmRSqW/J2tQ==

原因:

 1. 确定配置好各节点中/etc/hosts 文件的 hostname 能正确解析

 2. 确定各节点中 /var/lib/rabbitmq/.erlang.cookie  值相同

你可能感兴趣的:(系统运维,架构,消息队列,rabbitmq,分布式)