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

前端 未结 15 830
孤独总比滥情好
孤独总比滥情好 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题