RabbitMQ,erlang:如何“确保erlang cookie是相同的” [英] RabbitMQ, erlang: how to "make sure the erlang cookies are the same"

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

问题描述

我正在使用带有grails的rabbitMQ,今天早上出现了一个问题。当我运行rabbitmqctl状态时,它告诉我:

  C:\Users\BuildnTest2> rabbitmqctl status 
节点'兔@ BUILDNTEST2-PC'...
错误:无法连接到节点'rabbit @ BUILDNTEST2-PC':nodedown诊断:
- BUILDNTEST2-PC上的节点及其端口:[{rabbit ,49164},
{rabbitmqctl27693,49286}]
- 当前节点:'rabbitmqctl27693 @ BuildnTest2-PC'
- 当前节点home dir:C:\Users\BuildnTest2
- 当前节点cookie哈希:cSYB8tsT4mGGZHSUGQi08w ==

当我去兔子疑难解答页面: http://www.rabbitmq.com/troubleshooting.html 他们说:

 那么你应该确保erlang cookie是一样的。 

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



Google搜索发现此论坛帖子 http://lists.rabbitmq.com/pipermail /rabbitmq-discuss/2011-January/010806.html 声称有解决这个问题的指示,但可惜它只是重定向到没有答案的兔子网站。

解决方案

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



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



如果RabbitMQ服务正在运行,则运行rabbitmqctl start
如果没有运行,那么去服务启动它然后再上面。
erlang cookie与非群集配置无关。


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

C:\Users\BuildnTest2>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:\Users\BuildnTest2
- current node cookie hash: cSYB8tsT4mGGZHSUGQi08w==

When I go to the rabbit troubleshooting page: http://www.rabbitmq.com/troubleshooting.html they say:

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

What does this mean and how is it accomplished?

Googling found this forum thread http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-January/010806.html which claims to have instructions to solving this problem, but alas it just redirects back to the rabbit site where there is not an answer.

解决方案

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.

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天全站免登陆