Can';t将RabbitMQ节点连接到群集

Can';t将RabbitMQ节点连接到群集,rabbitmq,Rabbitmq,我刚刚在2个新虚拟机上安装了rabbitmq,并尝试创建一个简单的两节点集群。我已将erlang cookie文件从一台计算机复制到该计算机上的两个位置(C:\Users{username}和C:\Windows\System32\config\systemprofile)以及另一台计算机上的这些位置 当我尝试使用rabbitmqctl join_cluster命令将一个连接到另一个以创建集群时,我得到以下输出: Clustering node rabbit@{machinename1} wit

我刚刚在2个新虚拟机上安装了rabbitmq,并尝试创建一个简单的两节点集群。我已将erlang cookie文件从一台计算机复制到该计算机上的两个位置(C:\Users{username}和C:\Windows\System32\config\systemprofile)以及另一台计算机上的这些位置

当我尝试使用rabbitmqctl join_cluster命令将一个连接到另一个以创建集群时,我得到以下输出:

Clustering node rabbit@{machinename1} with rabbit@{machinename2}
Error: unable to perform an operation on node 'rabbit@{machinename2}. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on http://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbit@{machinename2}

DIAGNOSTICS
===========

attempted to contact: ['{machinename2}']

rabbit@{machinename2}:
  * connected to epmd (port 4369) on {machinename2}
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed

  * Hostname mismatch: node "rabbit@{machinename2}" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@{machinename2}"


Current node details:
 * node name: 'rabbitmqcli60@{machinename1}'
 * effective user's home directory: {homedirectory}
 * Erlang cookie hash: {hash}
互联网上的每个人似乎都在说这是由cookie不匹配引起的,但我已经证实它们是相同的。我错过了什么


运行Erlang OTP 20.2和rabbitMQ 3.7.3时,我注意到,
join_cluster
对于机器名是区分大小写的。

您是否在
machinename1
中为
machinename2
配置了
主机名不匹配:节点“rabbit”{machinename2}认为其主机不同。
-此计算机上的
hostname
命令输出什么?将其与
join_cluster
命令的输出进行比较。当我运行hostname命令时,我得到了相同的机器名。至于大黄蜂的问题,我没有修改hosts文件。然而,我不知道为什么这是必要的。我可以ping另一台机器,rabbitmq说它能够连接,但Erlang发行版失败了。回到这一点,我从头开始重新创建了两个VM,安装了Erlang和rabbitmq,尽我所能做到了一切,这次它成功了。我以前不知道是什么问题。我想你应该发表评论。