sudo apt update -y sudo apt install curl gnupg -y
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:
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:
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
$ sudo systemctl status rabbitmq-server.service
$ sudo systemctl stop rabbitmq-server.service
$ sudo systemctl start rabbitmq-server.service
$ sudo systemctl restart rabbitmq-server.service
That’s all.
Top articles in this category:
- MySql 8 installation on Ubuntu 20
- Install Cassandra 4 on Ubuntu 20.04
- Install & configure Redis on Ubuntu
- Install ElasticSearch 7 on Ubuntu 20.04
- Install OpenJDK 11 on Ubuntu 18.04 LTS
- Upgrade Jenkins on Ubuntu 18.04 LTS
- Upgrade MySQL from 5.7 to 8 on Ubuntu 18.04