Install Erlang and Rabbitmq on Ubuntu 18

Carvia Tech | March 15, 2020 | 2 min read | 475 views

This article will walk you through Erlang and RabbitMQ installation on Ubuntu 18.04 bionic server.

Step 1. Import Erlang GPG key

Run the following commands to import Erlang repository GPG key.

$ wget -O- | sudo apt-key add -

Step 2. Add the Erlang Repository

Once the key is imported to the system, you need to import the erlang repository to your Ubuntu 18.04 system by running the below command:

$ echo "deb bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

You can remove any previous erlang repository from below location:

$ ls /etc/apt/sources.list.d

Step 3. Install Erlang v22

Now you are ready for installing the Erlang version 22 on your system.

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

$ sudo apt update

Now, install Erlang package:

$ sudo apt -y install erlang

verify the installation, by running the below command:

$ erl -v

You shall see the below output:

$ erl -v
Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Eshell V10.6.4  (abort with ^G)

Step 4. Import RabbitMQ GPG key

Run the following commands to import RabbitMQ repository GPG key.

$ wget -O - "" | sudo apt-key add -

Step 5. Add RabbitMQ repository

Create Rabbitmq repository file.

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

With below content:

deb bionic erlang
deb bionic main

Save and close the file.

Step 6. Update the system package list

Update the system package repository by running the below command:

$ sudo apt-get update

Step 7. Install RabbitMQ server

Install RabbitMQ Server, by running the following command:

$ sudo apt-get install rabbitmq-server

Step 8. 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. Install Cassandra 4 on Ubuntu 20.04
  2. Install & configure Redis on Ubuntu
  3. Install ElasticSearch 7 on Ubuntu 20.04
  4. Install OpenJDK 11 on Ubuntu 18.04 LTS
  5. Upgrade Jenkins on Ubuntu 18.04 LTS
  6. Upgrade MySQL from 5.7 to 8 on Ubuntu 18.04
  7. Installing nginx on macOS Mojave using brew

Find more on this topic:
Dev Ops image
Dev Ops

Dev Ops Automation - Ubuntu OS, Centos, MySql, MongoDB, Java, AWS Infrastructure.

Last updated 1 week ago

Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info