RabbitMQ, Erlang: How to “make sure the erlang cookies are the same”

前端 未结 11 2240
太阳男子
太阳男子 2020-12-13 18:26

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

C:\\Users\\BuildnTest2>rab         


        
11条回答
  •  Happy的楠姐
    2020-12-13 19:22

    I was trying to cluster and even when the cookies matched it wouldn't work for me... the only thing that finally worked was setting the ERLANG_HOME variable in my environment variables.

    After I set this, I was able to copy the cookie from my master broker to the one I wanted to cluster with and the join worked fine.

    "Set ERLANG_HOME to where you actually put your Erlang installation, e.g. C:\Program Files\erlx.x.x (full path). The RabbitMQ batch files expect to execute %ERLANG_HOME%\bin\erl.exe.

    Go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Create the system environment variable ERLANG_HOME and set it to the full path of the directory which contains bin\erl.exe. "

    https://www.rabbitmq.com/install-windows-manual.html

提交回复
热议问题