how to install rabbitmq on ubuntu
install rabbitmq

Hi Guys, Welcome to Proto Coders Point. In this article let’s learn how to install RabbitMQ on ubuntu server.

Yipeee finally achieved developers ...
Yipeee finally achieved developers family of 1k subscribers 🥰 #shorts
What is RabbitMQ

RabbitMQ is a message queuing protocol, In simple words it is a software that works as message broker.

Eg: Can we use while build microservices envirnoment.

Install rabbitmq ubuntu

Below are step by step commands to install rabbitmq on ubuntu 20.04.

Step 1: Install curl, gnupg, apt-transport-https

sudo apt-get install curl gnupg apt-transport-https -y
install curl gnupg apt-transport-https

Step 2: Download RabbitMQ signing key

curl -1sLf "" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/ > /dev/null

Step 3: Download cloudsmith Erlang repo

curl -1sLf | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null

Step 4: Download RabbitMQ repository

curl -1sLf | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg > /dev/null

Step 5: Add apt repositories rabbitmq.list

sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF

tee in ubuntu is a command line interpreter used to input and output data in a file.

The about command will create a file by name rabbitmq.list, In this list will add below lines of cmd’s

## Provides modern Erlang/OTP releases
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] bionic main

## Provides RabbitMQ
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] bionic main


add apt repositories in rabbitmq.list

Step 6: ubuntu apt-get update

sudo apt-get update -y

Step 7: Install ErLang on ubuntu

sudo apt-get install -y erlang-base \
                        erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
                        erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
                        erlang-runtime-tools erlang-snmp erlang-ssl \
                        erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl

Step 8: Finally Install RabbitMQ

sudo apt-get install rabbitmq-server -y --fix-missing

Step 9: RabbitMQ check status

After successful installing rabbitMQ on ubuntu by following above step, To check is rabbitMQ is working or no use below command to check rabbitmq status.

systemctl status rabbitmq-server
check rabbitmq server status