RabbitMQ,Erlang:如何“确保 erlang cookie 相同" [英] RabbitMQ, Erlang: How to "make sure the erlang cookies are the same"

查看:41
本文介绍了RabbitMQ,Erlang:如何“确保 erlang cookie 相同"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有 Grails 的 RabbitMQ,今天早上出现了一个问题.当我运行 rabbitmqctl status 它告诉我:

I am using RabbitMQ with Grails, and a problem cropped up this morning. When I run rabbitmqctl status it tells me:

C:UsersBuildnTest2>rabbitmqctl status
Status of node 'rabbit@BUILDNTEST2-PC' ...
Error: unable to connect to node 'rabbit@BUILDNTEST2-PC': nodedown diagnostics:
- nodes and their ports on BUILDNTEST2-PC: [{rabbit,49164},
                                        {rabbitmqctl27693,49286}]
- current node: 'rabbitmqctl27693@BuildnTest2-PC'
- current node home dir: C:UsersBuildnTest2
- current node cookie hash: cSYB8tsT4mGGZHSUGQi08w==

当我进入 Rabbit 故障排除页面时,他们会说:

When I go to the Rabbit troubleshooting page they say:

then you should make sure the Erlang cookies are the same.

这是什么意思,它是如何实现的?

What does this mean and how is it accomplished?

谷歌搜索发现这个论坛 thread 声称有解决此问题的说明,但可惜它只是重定向回没有答案的兔子站点.

Googling found this forum thread which claims to have instructions to solving this problem, but alas it just redirects back to the rabbit site where there is no answer.

推荐答案

在 RabbitMQ 网站上,您的具体问题的最终答案位于 http://www.rabbitmq.com/clustering.html

The definitive answer to your specific question, on the RabbitMQ site is at http://www.rabbitmq.com/clustering.html

但是,从您的状态转储来看,这似乎不是您的问题.看起来好像您的节点已关闭.假设您没有运行集群,我是否正确?您无法连接到的节点与您从中运行命令的节点相同这一事实表明了这一点.

However, from your status dump, it doesn't look as though this is your issue. It just looks as though your node is down. Am I correct in assuming that you aren't running a cluster? The fact that the node that you can't connect to is the same as the one you are running the commands from indicates this.

如果 RabbitMQ 服务正在运行,则运行 rabbitmqctl start如果它没有运行,则转到服务并启动它,然后执行上述操作.erlang cookie 与非集群配置无关.

If the RabbitMQ service is running then run rabbitmqctl start If it isn't running then go to services and start it and then the above. The erlang cookie is irrelevant for non-clustered configurations.

这篇关于RabbitMQ,Erlang:如何“确保 erlang cookie 相同"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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