How to Install RabbitMQ on Ubuntu?

By on August 17th, 2018

RabbitMQ is the open source and commercially supported message broker. It is easy to use and it runs on all major operating systems and also it supports a huge number of developer’s platforms.

 

Install Erlang

We need to install Erlang before you install RabbitMQ on your system. Use the following command to add Erlang yum repository on RHEL based system. We can download the Erlang repository package from its official site.

$ wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

$ sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

 

Now we can install Erlang package on your using the following command. This will also install all of its dependencies.

$ sudo yum install erlang erlang-nox

 

Install RabbitMQ

1) Download the rpm package of RabbitMQ as per the operating system version from its official site.

$ wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-3.6.9-1.el7.noarch.rpm

 

2) Import the RabbitMQ signing key and install it using the following commands.

$ sudo rpm –import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

$ sudo yum install rabbitmq-server-3.6.9-1.noarch.rpm

 

Manage RabbitMQ Service

After complete the installation, enable RabbitMQ on our system and start the RabbitMQ service.

$ sudo systemctl enable rabbitmq-server

$ sudo systemctl start rabbitmq-server

$ sudo systemctl stop rabbitmq-server

 

Create Admin user in RabbitMQ

RabbitMQ creates default username and password as “guest”. We can create an administration account on RabbitMQ server.

$ sudo rabbitmqctl add_user admin password

$ sudo rabbitmqctl set_user_tags admin administrator

$ sudo rabbitmqctl set_permissions -p / admin “.*” “.*” “.*”

 

Setup RabbitMQ web management console

To control RabbitMQ, its provide the web management console for managing RabbitMQ.

$ sudo rabbitmq-plugins enable rabbitmq_management

 

We can access our RabbitMQ dashboard with port 15672. Use the username and password that we have already created to login.

 

If you need any further help please do reach our support department.

 

 

Leave a Reply