Installing RabbitMQ Server


This article will help you to install the RabbitMQ Server on the local machine step by step. RabbitMQ is a message-broker also know as message-queueing software that implemented the Advanced Message Queuing Protocol (AMQP).

RabbitMQ is an open-source software where queues are defined, to which application connect in order to transfer a message. It accepts and forwards messages and the RabbitMQ Server is written in the Erlang programming language.

P.S Tested with Erlang/OTP 22.3 & RabbitMQ Server 3.8.3 on Windows machine.

Now, without wasting the time, let’s jump to the actual installation of the RabbitMQ Server.

Prerequisite

The installation of the RabbitMQ server requires the following in your machine:

  1. Erlang setup (download link)
  2. RabbitMQ Server setup (download link)

1. Erlang Installation

Since we know RabbitMQ build on the top of Erlang, so first we will install the Erlang.

Step 1.1 Download the Erlang executable file from above link based on your operating system.

Erlang for Installing RabbitMQ Server

Step 1.2 Execute the downloaded file. It will install the Erlang in your machine.

If you are not a Windows user, you need to install it through the package manager:

  • For Homebrew on OS X: brew install erlang
  • For MacPorts on OS X: port install erlang
  • For Ubuntu and Debianapt-get install erlang
  • For Fedorayum install erlang
  • For FreeBSDpkg install erlang

2. RabbitMQ Installation

After the successful installation of Erlang, now we can install the RabbitMQ Server.

Step 2.1 Download the RabbitMQ Server executable file from above link based on your operating system.

Downloading RabbitMQ Server

Step 2.2 Execute the downloaded file. It will install the RabbitMQ Server in your machine.

Step 2.3 After the installation, open Command Prompt in Administrator mode and go to the location where RabbitMQ Server installed in your machine and run the following command:

Terminal
C:\Windows\system32> cd {path-to-your-rabbitmq-server}

C:\Windows\system32>cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.3

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.3>cd sbin

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.3\sbin>rabbitmq-server start
RabbitMQ Server startup command

This error message shows that “RabbitMQ” already running in your machine. You have nothing worry about it.

Step 2.4 Now, we have to enable the RabbitMQ management plugin to access it using the browser. Command as follows:

rabbitmq-plugins.bat enable rabbitmq_management
RabbitMQ Server Management Plugins

Here all the installation and setup of RabbitMQ Server and Erlang is completed.

2.5 RabbitMQ Server Console

localhost:15672 is the URL to access the RabbitMQ Server console locally. It can be accessed from any web browser.

RabbitMQ Server Console Login

The default user name and password for RabbitMQ console is guest.

RabbitMQ Server Console

References

  1. Erlang Programming Language
  2. RabbitMQ
  3. RabbitMQ- Installing on Windows

Similar Posts

About the Author

Atul Rai
I love sharing my experiments and ideas with everyone by writing articles on the latest technological trends. Read all published posts by Atul Rai.