Install Erlang and Rabbitmq on Ubuntu 18

Carvia Tech | March 15, 2020 | 2 min read | 270 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- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | 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 https://packages.erlang-solutions.com/ubuntu 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)
1>

Step 4. Import RabbitMQ GPG key

Run the following commands to import RabbitMQ repository GPG key.

$ wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | 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:

bintray.rabbitmq.list
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb https://dl.bintray.com/rabbitmq/debian 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. DevOps interview questions - Basic Concepts, Microservices, Databases, AWS
  2. Install Cassandra 4 on Ubuntu 20.04
  3. Install Redis on Ubuntu 20.04 LTS
  4. Install ElasticSearch 7 on Ubuntu 20.04
  5. Install OpenJDK 11 on Ubuntu 18.04 LTS
  6. Install and upgrade Jenkins on Ubuntu 18.04 LTS
  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