Change Default 'home' Path in Erlang to Resolve RabbitMQ Start Up Error

前端 未结 2 1792
难免孤独
难免孤独 2021-01-17 13:35

I\'m new to rabbitmq and by association new to erlang. I\'m running into a problem where I cannot start rabbitmq as the \'home\' location for the .erlang.cookie has been cha

相关标签:
2条回答
  • 2021-01-17 13:53

    You need to set the correct values ​​for variables $HOMEDRIVE and $HOMEPATH. These links should help:

    • Permanently Change Environment Variables in Windows
    • Overriding HOMEDRIVE and HOMEPATH as a Windows 7 user
    0 讨论(0)
  • 2021-01-17 14:04

    The solution I came up with was to not bother with the installed service. I used the rabbitmq-server.bat to start the service, SET HOMEDRIVE=C: at the start of the file. I'm planing to run this from a parent service so that I can install this on servers.

    Final note to earlang and rabbitMQ developers; using pre-existing environment variables for you own purposes is just wrong. You should create your own, or better yet put this stuff in a configuration file. Telling people to talk to their system administrators to change the HOMEDRIVE and APPDATA variables is arrogant to say the least.

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