In this article
If you need to customize names or locations, it is easiest to configure environment variables in the Windows dialogue: Start > Settings > Control Panel > System > Advanced > Environment Variables. Then create or edit the system variable name and value.
Add Environmental Variables
Add the following environmental variable:
- Set up ERLANG_HOME environment variable so it actually points to 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.
- Set up RABBIT_BASE env variable- this will decide where your RabbitMQ data, and configuration resides.
- Set up the ERLANG Cookie
Figure 1 - The New System Variable dialog
| Name | Default value | Suggested value |
|---|---|---|
| RABBITMQ_BASE | %APPDATA%\RabbitMQ | E:\Confirmit\RabbitMQ (Suggested path, try to avoid keeping RabbitMQ data on system drive) |
Set the same cookie value in the file called erlang.cookie in the following locations:
C:\Users\%USERNAME%
C:\WINDOWS\system32\config\systemprofile
Configuration File
- Create the RABBITMQ_BASE folder (E:\Confirmit\RabbitMQ or the same value as in the previous step).
- Create a file called enabled_plugins inside the folder with the following content:
[rabbitmq_management,rabbitmq_management_agent,rabbitmq_shovel,rabbitmq_shovel_management,rabbitmq_tracing].
For more information on these plugins, read https://www.rabbitmq.com/plugins.html.
Remove and Reinstall the RabbitMQ Service
The following commands must be run in the command prompt or powershell, running with administrator permissions.
rabbitmq-service remove
rabbitmq-service install
Wait for 30 seconds before executing next command.
rabbitmq-service start