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

Import RabbitMQ:

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

Now add RabbitMQ Repository To Ubuntu 18.04:

echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

Step 2: Install RabbitMQ Server Ubuntu 18.04 LTS

To install RabbitMQ Server Ubuntu 18.04, update apt list, then install rabbitmq-server package

sudo apt update
sudo apt -y install rabbitmq-server

After installation, RabbitMQ service is started and enabled to start on boot.



0条评论 顺序楼层