gpt4 book ai didi

Rabbitmq 集群在 ec2 上不起作用

转载 作者:行者123 更新时间:2023-12-04 21:52:12 25 4
gpt4 key购买 nike

用兔子聚类不起作用。我的意思是哇..我所有的端口都打开了。我在 ubuntu 12.04 上,但我得到了以下内容?任何兔子开发者都读过这些帖子......为什么会发生这种情况?为什么文档反射(reflect)了如何正确聚类?两者都有相同的cookie。

谢谢

sudo rabbitmqctl stop_app
rabbitmqctl join_cluster --ram rabbit@ip-172-31-12-135.us-west-1.compute.internal





Clustering node 'rabbit@ip-172-31-2-103' with 'rabbit@ip-172-31-12-135.us-west-1.compute.internal' ...
Error: unable to connect to nodes ['rabbit@ip-172-31-12-135.us-west-1.compute.internal']: nodedown

=ERROR REPORT==== 26-Aug-2014::07:25:21 ===
** System NOT running to use fully qualified hostnames **
** Hostname ip-172-31-12-135.us-west-1.compute.internal is illegal **

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

attempted to contact: ['rabbit@ip-172-31-12-135.us-west-1.compute.internal']

rabbit@ip-172-31-12-135.us-west-1.compute.internal:
* connected to epmd (port 4369) on ip-172-31-12-135.us-west-1.compute.internal
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?

current node details:
- node name: 'rabbitmqctl20516@ip-172-31-2-103'
- home dir: /var/lib/rabbitmq
- cookie hash: deaU3MfVotDW9r05xrIWwA==

最佳答案

很抱歉恢复此功能,但我在使用 Rabbit 3.4.2 和 Erlang OTP 17.3 的 Windows 上遇到了类似的问题。我确定这也是 Rabbit 至少回到 3.3.5 的问题。

我的目标是在同一个 vnet 上设置一个 RabbitMq 集群。机器可以看到对方,可以得到对方的共享等。机器有相同的 erlang cookie 并且没有报告错误。我可以连接到每个代理,但不能让它们聚集在一起。

网络上对此没有太多帮助,因此在与它斗争了(许多)小时后,我是这样修复它的。对我来说,这是一个 shell 问题。我的虚拟机被命名为 rabbitMq00 和 rabbitMq99 所以我来自 rabbitMq00 的集群命令是:

rabbitmqctl join_cluster rabbit@rabbitMq99

错误的!产生的错误消息与原始问题中的一样:
rabbit@rabbitMq99:
* connected to epmd (port 4369) on rabbitMq99
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?

Windows/Erlang/WhoKnows 需要大写(可能是因为过去的 NetBIOS)。 正确的命令是:
rabbitmqctl join_cluster rabbit@RABBITMQ99

服务器名称必须大写。 悲伤但真实。希望这可以帮助某人。

关于Rabbitmq 集群在 ec2 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25500629/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com