在rabbitmq中创建集群时出错 [英] Error while creating a cluster in rabbitmq

查看:82
本文介绍了在rabbitmq中创建集群时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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

rabbitmqctl join_cluster rabbit@node1 Clustering node rabbit@node2 with rabbit@node1 ... Error: unable to connect to nodes [rabbit@node1]: nodedown

诊断

尝试联系:[rabbit@node1]

attempted to contact: [rabbit@node1]

rabbit@node1: * 连接到 node1 上的 epmd(端口 4369)* epmd报告在端口 25672 * TCP 连接上运行的节点rabbit"成功但 Erlang 分发失败 * 建议:主机名不匹配?* 建议:cookie 设置正确吗?* 建议:是使用 TLS 的 Erlang 发行版吗?当前节点详细信息:- 节点名称:'rabbitmq-cli-552@node1'- 主目录:C:\Users\dataimports- cookie 哈希:AWMNI​​TV6TcxGSxvEF6Gndw==

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中创建集群时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆