Kry*_*ski 11 windows erlang rabbitmq
我刚刚在我的WindowsXP PC上安装了RabbitMQ.我也完成了Erlang OPC15先决条件.
我的rabitmq似乎正在运作.我在python中使用pika做了一个简单的测试,它似乎工作.这项服务正在进行中.
问题是我无法对rabbitmqctl.bat做任何事情.我总是得到回应:
Status of node rabbit@MYPCNAME ...
Error: unable to connect to node rabbit@MYPCNAME: nodedown
diagnostics:
- nodes and their ports on MYPCNAME: [{rabbit,3097},{rabbitmqctl17251,1132}]
- current node: rabbitmqctl17251@mypcname
- current node home dir: C:\Documents and Settings\Myuser
- current node cookie hash: NOTSUREIFTHISISSENSITIVESOREMOVED==
Run Code Online (Sandbox Code Playgroud)
在我的rabbitmq日志文件中,我得到:
=ERROR REPORT==== 12-Feb-2012::17:01:22 ===
** Connection attempt from disallowed node rabbitmqctl17251@mypcname **
Run Code Online (Sandbox Code Playgroud)
从各种论坛我推断这与cookie有关.我们在谈论什么饼干?为了能够使用rabbitmqctl.bat管理我的RabbitMQ实例,我需要做什么?请以非erlang非功能性程序员理解的方式来表达您的答案.
Yil*_*ing 21
有同样的问题,直接从手动安装指南中解释我的问题:
同步Erlang Cookies(运行手动安装的Windows服务时)
Erlang安全服务帐户和运行的用户使用的Cookie rabbitmqctl.bat必须同步rabbitmqctl.bat才能运行.
要确保Erlang cookie文件包含相同的字符串,请.erlang.cookie从Windows目录(通常C:\WINDOWS\.erlang.cookie)复制文件以替换用户.erlang.cookie..用户cookie将位于用户的主目录(%HOMEDRIVE%%HOMEPATH%)中,例如C:\Documents and Settings\%USERNAME%\.erlang.cookie或C:\Users\%USERNAME%\.erlang.cookie(Windows Vista及更高版本).