Can't connect to RabbitMQ on Window Server 2012?

偶尔善良 提交于 2020-01-11 07:13:33

问题


I've installed RabbitMQ 3.5.5 on Windows Server 2012 as a service by first installing Erlang (32 bit) and then following the RabbitMQ manual install instructions (https://www.rabbitmq.com/install-windows-manual.html)

The Windows service starts up fine, but nothing can connect.

When I run rabbitmq_server-3.5.5\sbin\rabbitmqctl.bat status I get the following output:

rabbit@XXXXXXXX:

  • connected to epmd (port 4369) on XXXXXXXX
  • epmd reports node 'rabbit' running on port 25672
  • TCP connection succeeded but Erlang distribution failed
  • suggestion: hostname mismatch?
  • suggestion: is the cookie set correctly?
  • suggestion: is the Erlang distribution using TLS?

current node details:

  • node name: 'rabbitmq-cli-1444@XXXXXXXX'
  • home dir: C:\Users\userxxxx
  • cookie hash: XDarCC/CmuhQpUEo95dj8g==

From the output and from netstat I can see that rabbit is running on port 4369.

I can start the server manually using rabbitmq-server.bat and everything works.

I can't find any additional cookies floating around except for the one in my user directory (C:\Users\userxxxx).

Does anyone have any ideas?


回答1:


This a typo.

Are you sure that you don't have .erlang.cookie inside c:\windows . Have you copied the file as described here?

Copy the file .erlang.cookie manually from %SystemRoot% to %HOMEDRIVE%%HOMEPATH%.



来源:https://stackoverflow.com/questions/32821094/cant-connect-to-rabbitmq-on-window-server-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!