Installing RabbitMQ on Windows

alex_ber
Geek Culture
Published in
3 min readDec 31, 2020

This is step by step simplified tutorial on how to install RabbitMQ on Windows machine.

For using RabbitMQ inside docker container see here.

Note: There is assumption that you’re using Erlang only for RabbitMQ and for nothing else.

  • If you have old RabbitMQ installed, first of all export it’s setting from the management UI:

After you login scroll down and click on “Download Broker definition” and download file.

After you will finish installation of new version of RabbitMQ click on “Upload Broker definitions” and upload the file.

The Erlang programming language has immutable data, pattern matching, and functional programming

  • Uninstall RabbitMQ

1. From https://erlang.org/download/otp_versions_tree.html download 23.x version & install using an administrative user https://github.com/erlang/otp/releases/download/OTP-23.1.5/otp_win64_23.1.5.exe

2. Set ERLANG_HOME to where you actually put your Erlang installation, e.g. C:\Program Files\erl{version} (full path, we have version=23.1.5). The RabbitMQ batch files expect to execute %ERLANG_HOME%\bin\erl.exe.

Go to Start > Settings > Control Panel > System > Advanced > Environment Variables. Create the system environment variable ERLANG_HOME and set it to the full path of the directory which contains bin\erl.exe.

3. Restart computer

4. Check that Erlang is working:

  • open cmd and type

“%ERLANG_HOME%\bin\erl.exe”

You should see Eshell prompt:

5. Once a supported version of Erlang is installed, download the RabbitMQ installer, rabbitmq-server-{version}.exe and run it. It installs RabbitMQ as a Windows service and starts it using the default configuration.

Go to https://www.rabbitmq.com/install-windows.html and download & run rabbitmq-server-3.8.9.exe

See also:

https://www.rabbitmq.com/install-windows-manual.html

6. Based on https://medium.com/@kiranbs890/rabbitmq-setup-on-local-machine-windows-958bada6003c

Open new cmd and type
cd C:\Program Files\RabbitMQ Server\rabbitmq_server-{version}\sbin

cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin

rabbitmq-plugins.bat enable rabbitmq_management

You should see

Type

rabbitmq-plugins enable rabbitmq_shovel rabbitmq_shovel_management

You should see

7. Edit C:\Windows\System32\drivers\etc\hosts file. Add to it the following line:

127.0.0.1 rabbitmq

8. Once all done open : http://rabbitmq:15672/ for opening the rabbitmq management.

Username: guest

Password: guest

For the client code that works with installed RabbitMQ you can go to https://alex-ber.medium.com/rabbitmq-inside-docker-container-8b8bfea22174 to the Code Example section. The same code will work with installed RabbitMQ provided you have added 127.0.0.1 rabbitmq to the C:\Windows\System32\drivers\etc\hosts file (alternatively, you can change hostparameter of the ConnectionParameters to localhost).

--

--