在 EC2 上的 RabbitMQ 中创建集群时出错
我想在EC2上创建一个RabbitMQ集群。我创建了一个 Ubantu 的 AMI 并在其上安装了rabbitmq-server-2.3.1。 我还安装了 GUI 的管理插件。出于集群目的,我还将 .erlang.cookie 文件复制到另一个节点中。 我的问题是,当我尝试连接另一个节点时,它给出以下错误:
错误:{failed_to_cluster_with,['rabbit@ip-10-58-54-170'], “Mnesia 无法连接到某些节点。”}
有人知道为什么会发生这种情况吗?
I want to create a cluster of RabbitMQ on EC2. I have created an AMI of Ubantu and install the rabbitmq-server-2.3.1 on it.
I have also installed the management plugins for GUI. For cluster purpose I have also copied the .erlang.cookie file in another node.
My ploblem is when I am trying to connect with another node it gives me following error:
Error: {failed_to_cluster_with,['rabbit@ip-10-58-54-170'],
"Mnesia could not connect to some nodes."}
Anybody has any idea why it is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“Mnesia 无法连接到某些节点”有几个常见原因:
ping
其他主机吗?)、要快速诊断问题:
检查连接:
ping other_node
检查 Erlang 是否可以连接到 other_node:
erl -sname my_node -remshrabbit@other_node
检查 Rabbit 是否正在远程节点上运行:
rabbitmqctl -n other_node status
相当多的人已经设法让 RabbitMQ 集群在 EC2 上运行,所以这当然是可能的。
如果您需要更多帮助,RabbitMQ 讨论 邮件列表。开发人员重点回答所提出的问题。
There are a few usual causes for "Mnesia could not connect to some nodes":
ping
the other hosts?),To quickly diagnose the issue:
check connectivity:
ping other_node
check that Erlang can connect to other_node:
erl -sname my_node -remsh rabbit@other_node
check that Rabbit is running on the remote node:
rabbitmqctl -n other_node status
Quite a few people have managed to get RabbitMQ clusters working on EC2, so it's certainly possible.
If you need more help, a great place to ask is the RabbitMQ Discuss mailing list. The developers make a point of answering the questions asked.
就我而言,在 Ubuntu 11.10 下,它
在我总是收到此错误消息之前有所帮助......
In my case under Ubuntu 11.10 it helped to
before I always got this error message...