Getting Started with RabbitMQ on Ubuntu

RabbitMQ is a message broker. The idea behind RabbitMQ is accepting and forwarding messages.

In this article, we will get started with RabbitMQ by installing it on Ubuntu 16.04.

Run the following commands in order to install RabbitMQ.

  1. Adding repository and key.
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -

2. Updating package list.

sudo apt-get update

3. Installing RabbitMQ server package.

sudo apt-get install rabbitmq-server

4. Once successfully installed, you can run the following command and check the status.

sudo rabbitmqctl status

The management console of RabbitMQ can be accessed by the following URL in any Web Browser.

http://localhost:15672/

RabbitMQ Management Console

If you are unable to see the Management console on the browser, you need to add the management plugin. To add the plugin, run the following command.

sudo rabbitmq-plugins enable rabbitmq_management

Once the plugin is added, you can access RabbitMQ from the Management Console.

Like what you read? Give Nihla Akram a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.