Rabbitmq集群问题

https://blog.csdn.net/wochunyang/article/details/52524977
添加节点的时候出现下面提示

sudo rabbitmqctl join_cluster --ram rabbit@rabbitmq-node1
Clustering node rrabbit@rabbitmq-node1 with rabbit@rabbitmq-node1...
Error: unable to connect to nodes rabbit@rabbitmq-node1]: nodedown

DIAGNOSTICS
===========
attempted to contact: [rabbit@rabbitmq-node1]
rabbit@rabbitmq-node1:
  * unable to connect to epmd (port 4369) on rabbitmq-node1: nxdomain (non-existing domain)
current node details:
- node name: 'rabbitmqctl-526rabbitmq-node1'
- home dir: /var/lib/rabbitmq
- cookie hash: 50YO3zK+HJHos0tab1vHjg==

编辑 vi /ect/hosts 务必加入节点 IP 否则无法解析

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.51    Dev001
192.168.2.52    Dev002
192.168.2.53    Dev003

你可能感兴趣的:(中间件)