执行命令:
rabbitmqctl join_cluster rabbit@hostname1
异常信息:
unable to connect to epmd (port 4369) on vm-246: nxdomain (non-existing domain)
原因分析:
由于不能解析hostname1
解决办法:
/etc/hosts 中把各个主机节点的hostname 加上(需要使用root账号)
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.xx1 hostname1
192.168.0.xx2 hostname2