Step 1: Install Erlang/OTP

RabbitMQ requires Erlang to be installed first before it can run. Install Erlang on Ubuntu 18.04 system using our previous guide:

1: Import Erlang GPG Key

Run the following commands to import Erlang repository GPG key

wget -O- | sudo apt-key add -

2: Add the Erlang Repository

Once you have imported the key, add the repository to your Ubuntu 18.04 system by running the following commands:

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

3: Install Erlang

The last step is the actual installation of Erlang. Update your system package list and install Erlang

sudo apt update
sudo apt -y install erlang

Once Erlang has been installed, proceed to step 2.

Step 2: Add RabbitMQ Repository To Ubuntu 18.04


sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y

## Team RabbitMQ's main signing key
sudo apt-key adv --keyserver "hkps://" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
## Cloudsmith: modern Erlang repository
curl -1sLf | sudo apt-key add -
## Cloudsmith: RabbitMQ repository
curl -1sLf | sudo apt-key add -

## Add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
## Provides modern Erlang/OTP releases
deb bionic main
deb-src bionic main

## Provides RabbitMQ
deb bionic main
deb-src bionic main

## Update package indices
sudo apt-get update -y

## Install Erlang packages
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

## Install rabbitmq-server and its dependencies
sudo apt-get install rabbitmq-server -y --fix-missing



0条评论 顺序楼层