Installing and Configuring RabbitMQ on Windows Machine

Looking for a reliable message broker service that can help you manage your data effectively?
Look no further than RabbitMQ - a popular AMQP (Advanced Message Queuing Protocol) based message broker that's trusted by developers and businesses worldwide. Available for Windows, Linux, and macOS, RabbitMQ is easy to install and use and offers a range of powerful features for message queuing and routing. To start with RabbitMQ on your Windows machine, you must install Erlang/OTP first. In this article, we'll walk you through the process of installing and configuring RabbitMQ on Windows, so you can start using this powerful tool to manage your data more effectively.

How to Install RabbitMQ?

Step 1. Download Erlang/OTP for RabbitMQ from the Erlang downloads web page. Before downloading Erlang, check the version compatibility with RabbitMQ from this page. 2) Run the Erlang setup to start the installation.

ErlangSetup

Step 2. After completing the Erlang installation, download the RabbitMQ from the downloads webpage. Download the official installer of RabbitMQ. Alternatively, you can install it using Chocolatey.

Step 3. Make sure to install the RabbitMQ Server as administrator. Run the setup to start the installation.

RabbitMQSetup

Step 4. At the end of the installation, select the Start RabbitMQ service check box and click Finish.

RabbitMQ-FinalStep

Step 5. Go to the Start menu and open the Run command. Open the Services list by running services.msc in the run window.

Step 6. Make sure the RabbitMQ service is running.

services-list

Configure the RabbitMQ Management Console

Step 1. Open the Windows command prompt/PowerShell window and switch to the RabbitMQ installed location. By default, RabbitMQ executables will be installed in the C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.13\sbin location.

Step 2. Run the rabbitmq-plugins and enable the rabbitmq_management command in the command window. If you use PowerShell, run .\rabbitmq-plugins.bat to enable the rabbitmq_management command.

.\rabbitmq-plugins.bat enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_management

Enable-admin-console

Step 3. Restart the RabbitMQ server. Run the following commands in PowerShell/command window.

.\rabbitmqctl.bat stop
.\rabbitmq-server.bat  -detached
rabbitmqctl.bat stop
rabbitmq-server.bat -detached

Step 4. Open the browser and navigate to http://localhost:15672.

Management console

Step 5. Login with the default username and password. The default username is guest, and the password is guest.

Home Page

Step 6. Navigate to the Admin tab, and specify a username and password. Select the role as administrator by clicking on the admin from the list of roles. Click on Add user button.

Create User

Step 7. The new user created will not have login permission to the management console. You need to provide access to the virtual host to enable login permission.

Newuser

Step 8. Click on the username; in the user console, select the virtual host(/) and click the Set Permission button.

ConsoleAccess

Step 9. Log out of the guest user and log in with the new user username and password.

Conclusion

Congratulations! You've successfully installed and configured RabbitMQ on your Windows machine and set up the management console to start managing your data with ease. With RabbitMQ, you have access to a powerful message broker that can help you optimize your data management, streamline your workflows, and ensure smooth communication between your applications. Whether you're new to RabbitMQ or an experienced user, our step-by-step guide has everything you need to get started and take full advantage of this versatile tool. By following these simple steps, you can start enjoying the benefits of RabbitMQ today.