RabbitMQ is an open-source message broker software that implements the Advanced Message Queueing Protocol (AMQP). It supports multiple messaging protocols. It can be used for performing background operations and asynchronous operation.

RabbitMQ is written using Erlang programming language and it is built on the Open Telecom Platform framework.

Today we will look into how to install RabbitMQ server on Ubuntu 18.04 LTS server.

Step 1: Install Erlang/OTP

We assume that Erlang is pre-installed on your Ubuntu server, if not then you can find the installation guide here.

Step 2: Import RabbitMQ Repository

# import repository sigining key
$ wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo 
$ apt-key add - 
$ wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo  apt-key add ​-

# add repository to apt list
$ echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list 

Step 3: Install RabbitMQ server

$ sudo apt update
$ sudo apt install rabbitmq-server -y

Step 3: Configure RabbitMQ server to start at boot

$ sudo systemctl enable rabbitmq-server.service
$ sudo systemctl start rabbitmq-server.service

To test RabbitMQ installation you may use the following command:

$ sudo systemctl status rabbitmq-server.service