Install RabbitMQ and Erlang 23 on Ubuntu 20

Upasana | September 04, 2021 | 2 min read | 552 views


This article will walk you through Erlang 23 and RabbitMQ installation on Ubuntu 20.04 focal server.

First of all run the system update using the below command:

sudo apt update -y
sudo apt install curl gnupg -y

Step 1. Import RabbitMQ GPG Signing key

Run the following commands to import Erlang repository GPG key.

$ curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -

Also, install the HTTPS transport if missing

sudo apt-get install apt-transport-https

Step 2. Add RabbitMQ & Erlang 23.x repository

Create Rabbitmq repository file.

$ sudo nano /etc/apt/sources.list.d/bintray.rabbitmq.list

With below content:

/etc/apt/sources.list.d/bintray.rabbitmq.list
deb https://dl.bintray.com/rabbitmq-erlang/debian focal erlang
deb https://dl.bintray.com/rabbitmq/debian bionic main

Save and close the file.

Step 3. Install Erlang 23.x and RabbitMQ

Now you are ready for installing the Erlang version 23 and RabbitMQ Server on your system.

Update the system packages list first, by running the below command:

$ sudo apt update -y

Now, install Erlang package and RabbitMQ server:

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

verify the installation, by running the below command:

$ erl -v

You shall see the below output:

Erlang/OTP 23 [erts-11.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]
Eshell V11.1  (abort with ^G)

Step 4. Manage RabbitMQ service

Use systemctl to manage rabbitmq server

Check status of service
$ sudo systemctl status rabbitmq-server.service
Stop the service
$ sudo systemctl stop rabbitmq-server.service
Start the service
$ sudo systemctl start rabbitmq-server.service
Restart the service
$ sudo systemctl restart rabbitmq-server.service

That’s all.


Top articles in this category:
  1. MySql 8 installation on Ubuntu 20
  2. Install Cassandra 4 on Ubuntu 20.04
  3. Install & configure Redis on Ubuntu
  4. Install ElasticSearch 7 on Ubuntu 20.04
  5. Install OpenJDK 11 on Ubuntu 18.04 LTS
  6. Upgrade Jenkins on Ubuntu 18.04 LTS
  7. Upgrade MySQL from 5.7 to 8 on Ubuntu 18.04

Recommended books for interview preparation:

Find more on this topic:
Buy interview books

Java & Microservices interview refresher for experienced developers.