Windows x64 RabbitMQ install error with Erlang environment var (ERLANG_HOME)

前端 未结 15 716
孤独总比滥情好
孤独总比滥情好 2020-12-14 01:38

I\'m ask/answering this question because it hung me up & it\'s likely someone else will have the same problem.

Install of RabbitMQ x64 v2.8.6 on Windows Server 2

相关标签:
15条回答
  • 2020-12-14 02:03

    There are several RabbitMQ control .bat files on windows. Every one you use needs to get changed to reflect the Erlang path correctly. In this example, I'm editing the rabbitmq-server.bat because it's one of the easier ones... any of the .bat files you want to run will need this hack to get them to work, with the rabbitmq_service.bat file being the most involved to adjust.

    editing that rabbitmq_server.bat file, you can see on about line 48 or so there's a check to see if the erl.exe is found, but the path isn't correct:

    if not exist "!ERLANG_HOME!\bin\erl.exe" (
    

    that path does not match the file structure for the 5.9.2 version of Erlang. I fixed this by simply removing this path check from about line 48 to 58, then, where the .bat actually makes a call to the erl.exe on about line 129 which reads:

    "!ERLANG_HOME!\bin\erl.exe" 
    

    I simply hardcoded the path to my erl.exe:

    "C:\Program Files\erl5.9.2\erts-5.9.2\bin\erl.exe" 
    

    With the pathing correct, the rabbitmq .bat files will run.

    0 讨论(0)
  • 2020-12-14 02:03

    I solved it in a quick and dirty way,without naming path variables I've opened the bat file and replaced every occurrence of

    !ERLANG_HOME!\bin\erl.exe
    

    with hard coded path for example might be diffrent path for you because of diffrent version

    C:\Program Files\erl10.3\erts-10.3\bin\erl.exe
    

    and replaced

    %RABBITMQ_HOME%\escript\rabbitmq-plugins
    

    with

    C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\escript\rabbitmq-plugins
    
    0 讨论(0)
  • 2020-12-14 02:06

    In my case, it should be installed erlang using admin role running

    0 讨论(0)
  • 2020-12-14 02:08

    Just to share an up-to-date answer as of 2019: On Windows Server 2019, after setting up the environment variable, a restart is required to solve the problem.

    0 讨论(0)
  • 2020-12-14 02:08

    Just give C:\Program Files\erl10.6\ not C:\Program Files\erl10.6\bin\erl.exe in the environment variable. If you open the server.bat file I came to know the issueenter image description here

    0 讨论(0)
  • 2020-12-14 02:10
    1. Download Erlang or OTP - Only one Version of OTP should be installed

    2. Download RabbitMQ installer

    3. Install both exe file as Administrator

    4. Set class path for Erlang. (Setting classpath is a bit troublesome, so follow these steps)

      1. Set a new path with name ERLANG_HOME and value C:\Program Files\erl-23.1 (do not copy bin folder here)
      2. Edit System "path" and add %ERLANG_HOME%\bin
    5. Go to Start - Open rabbitmq command promt and run

      rabbitmq-plugins enable rabbitmq_management
      
    6. Navigate to localhost:15672

    7. Use guest/guest to login

    0 讨论(0)
提交回复
热议问题