Easy Guide: Installing RabbitMQ on Windows Server 2019.

Introduction

RabbitMQ is a powerful open-source message Queueing system that facilitates communication between different components of a software application. It supports several messaging protocols such as AMQP, SMTP, STOMP, and HTTP for lightweight web messaging.

Installing RabbitMQ on Windows has many benefits to developers and system administrators, such as message persistence, routing, and fault tolerance, contribute to improved performance, reliability, and scalability. By following this guide, users can quickly set up RabbitMQ and begin leveraging its powerful capabilities for their software applications.

Prerequisites

To install RabbitMQ on Windows server 2019/2023, it not requires high level hardware specs. There should be like Multi core CPU, RAM 4GB, and Storage20GB, or depends upon the amount of queuing messages data. Before proceeding with the installation, some software and tools that you should have prepared. These include

  • The RabbitMQ installer: which can be downloaded from the official RabbitMQ website.
  • The Erlang programming language: which is a prerequisite for running RabbitMQ.

Additionally, it’s recommended to have administrative privileges on your Windows machine to perform the installation smoothly.

Download and Install Erlang/OTP for Windows

Follow these steps to install Erlang on a Windows server:

  • Gain administrative access to your Windows server.
  • Visit the official Erlang website and download the compatible version for Windows.
Download ERLANG
  • Run the Erlang installer and proceed with the installation process.
ERLANG Installation
  • Choose the appropriate installation options, such as the installation directory. then click on next button.
ERLANG Installation2
  • choose start menu option then click on next button.
ERLANG Installation3
  • In this step Microsoft Visual C++ Redistribution is missing, wizard will detect and install automatically.
ERLANG Installation-Visual c++ Redistribution
  • Now, installation process will start.
ERLANG Installation start
  • Finally, installation process completed.
ERLANG Installation completed

Allow the installer to complete the installation, which may take a few moments. Verify the successful installation by checking the availability of Erlang on the server.

Download and Installing RabbitMQ for Windows

To download RabbitMQ from the official website, follow these simple steps:

RabbitMQ Download
  • Run the RabbitMQ installer and follow the installation wizard.
RabbitMQ Installation
  • Select the desired installation options, such as the installation directory.
RabbitMQ Installation2
  • Complete the installation process and wait for it to finish.
RabbitMQ Installation3
  • Installation Finished.
RabbitMQ Installation completed
  • Once Installation process completed, then restart/reboot system.
  • Verify the successful installation by accessing the RabbitMQ management interface.

Now will start Rabbitmq server from command prompt, goto rabbitmq server sbin path where it gets installed. in my case the location

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.16\sbin>

Now start RabbitMQ server with command rabbitmq-server start

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.16\sbin>rabbitmq-server start

RabbitMQ_server_start

Next we will set up the RabbitMQ plugin by using below command, to use the RabbitMQ Management Console from Web Browser.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.16\sbin>rabbitmq-plugins.bat enable rabbitmq_management
RabbitMQ_Plugin_Install

Accessing the RabbitMQ management interface:

  • Open a web browser on your machine.
  • Enter the URL for the RabbitMQ management interface, usually in the format http://localhost:15672.
  • Provide the administrator username and password to log in. here i logged in with guest user.
  • User: guest
  • password: guest
RabbitMQ-Login
  • Once logged in, you can access and manage RabbitMQ through the user-friendly web interface.
RabbitMQ-Interface

Setting up the administrator account and password:

  • Log in to the RabbitMQ management interface using the administrator credentials.
  • Navigate to the “Admin” or “Users” section of the interface.
  • Create a new user account with administrative privileges.
  • Assign a strong password to the administrator account for security purposes.
RabbitMQ-Adding Users

Conclusion:

Finally, we were able to complete RabbitMQ installation on windows. RabbitMQ offers a wide range of powerful features for managing message queueing in your applications. Explore the various capabilities of RabbitMQ, such as message persistence, routing, and fault tolerance, and improve the communication and scalability of your applications. Stay updated with the latest releases and documentation from the RabbitMQ community to make the most out of this robust messaging system.

Read More Topics:

Leave a Reply