1.在成功安装为services后,start也成功,但是rabbitmqctl.bat status却提示

或者rabbitmqctl list_exchanges

Error: unable to connect to node '?': nodedown

参考http://www.rabbitmq.com/install.html#running-windows-service中 Troubleshooting 一节中提到 

This example indicates that no broker is running:

  Status of node 'rabbit@xxx' ...
  Error: unable to connect to node 'rabbit@xxx': nodedown
  diagnostics:
  - nodes and their ports on xxx: [{rabbitmqctl,...}]
  - current node: 'rabbitmqctlxxx@xxx'
  - current node home dir: [...]
  - current node cookie hash: [...]If the diagnostic line looks like this:
  - nodes and their ports on xxx: [{rabbit,...},{rabbitmqctl,...}]

and the broker logfile contains entries similar to

  Connection attempt from disallowed node...

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

所以删了%APPDATA%下的"RabbitMQ"目录

和%USERPROFILE%下的".erlang.cookie"文件,再试,还是失败

然后看到 http://www.rabbitmq.com/man/rabbitmq-service.man.html

其中有一句

(typically C:\WINDOWS\.erlang.cookie and the account that will be used to run rabbitmqctl.

去把C:\WINDOWS.erlang.cookie复制出来,覆盖掉%USERPROFILE%下的".erlang.cookie"文件,再试,成功


本文地址:/MQ/2011/10/20/rabbitmq