windows 64位 安装 rabbitmq 出错

下载地址
https://www.rabbitmq.com/download.html

我下载的是3.7.15

先安装 Erlang 再安装 rabbitmq

启用管理界面
rabbitmq-plugins enable rabbitmq_management 出错

配置时出错 :

******************************ERLANG_HOME not set correctly.******************************Please either set ERLANG_HOME to point to your Erlang installation or place theRabbitMQ server distribution in the Erlang lib folder.

环境变量也是配置对的 但是在 rabbitmq_server.bat 一直没读取到

解决办法:

编辑rabbitmq_server.bat文件,看看是否找到了erl.exe ,但路径不正确:
31行:

if not exist "!ERLANG_HOME!\bin\erl.exe" ( echo. echo ****************************** echo ERLANG_HOME not set correctly. echo ****************************** echo. echo Please either set ERLANG_HOME to point to your Erlang installation or place the echo RabbitMQ server distribution in the Erlang lib folder. echo. exit /B 1)

48行:

"!ERLANG_HOME!\bin\erl.exe" +B ^

直接改成了绝对路径 :

"D:\Program Files\erl9.3\bin\erl.exe"

重启 访问 http://localhost:15672 默认账号和密码都是 guest