问题描述
我是rabbitmq 的新手,正在尝试建立一个集群.但是我收到以下错误.C:\Windows 和 C:\Users\
目录
I am new to rabbitmq and trying to set up a cluster. However I am getting the following error. The cookie is same in both machine in the C:\Windows and C:\Users\<user in context>
directories
rabbitmqctl join_cluster rabbit@node1 集群节点rabbit@node2with rabbit@node1 ... 错误:无法连接到节点[rabbit@node1]:nodedown
诊断
尝试联系:[rabbit@node1]
rabbit@node1: * 连接到 node1 上的 epmd(端口 4369)* epmd报告在端口 25672 * TCP 连接上运行的节点rabbit"成功但 Erlang 分发失败 * 建议:主机名不匹配?* 建议:cookie 设置正确吗?* 建议:是使用 TLS 的 Erlang 发行版吗?当前节点详细信息:- 节点名称:'rabbitmq-cli-552@node1'- 主目录:C:\Users\dataimports- cookie 哈希:AWMNITV6TcxGSxvEF6Gndw==
rabbit@node1: * connected to epmd (port 4369) on node1 * epmd reports node 'rabbit' running on port 25672 * TCP connection succeeded but Erlang distribution failed * suggestion: hostname mismatch? * suggestion: is the cookie set correctly? * suggestion: is the Erlang distribution using TLS? current node details: - node name: 'rabbitmq-cli-552@node1' - home dir: C:\Users\dataimports - cookie hash: AWMNITV6TcxGSxvEF6Gndw==
非常感谢任何帮助.
推荐答案
当存在的节点是 rabbitmq-cli-552@node1 时,看起来您的 rabbit@node2 节点正在寻找名为 rabbit@node1 的节点.
Looks like your rabbit@node2 node is looking for a node named rabbit@node1 when the node that exists is rabbitmq-cli-552@node1.
在安装时启动rabbitmq 时会发生这种情况.解决此问题的最佳方法是停止rabbitmq 进程(sudo/etc/init.d/rabbitmq-server stop)然后启动它(sudo/etc/init.d/rabbitmq-server start).
This happens when rabbitmq is started on install. Best way to get around this is to stop the rabbitmq process (sudo /etc/init.d/rabbitmq-server stop) then to start it (sudo /etc/init.d/rabbitmq-server start).
如果第一个命令无法停止它,您可以随时杀死rabbitmq服务器进程,然后重新启动它.出现的节点应该具有正确的名称.
If the first command fails to stop it, you can always kill the rabbitmq server process, then start it again. The node coming up should have the correct name.
这篇关于在rabbitmq中创建集群时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!