执行命令:
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
本文讲述了在尝试通过`rabbitmqctl join_cluster`命令加入RabbitMQ集群时遇到的因hostname解析失败的异常,并提供了在`/etc/hosts`文件中添加主机名的解决方案,确保集群通信正常。
1万+

被折叠的 条评论
为什么被折叠?



