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- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | 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 https://packages.erlang-solutions.com/ubuntu 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- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -

Now add RabbitMQ Repository To Ubuntu 18.04:

echo "deb https://dl.bintray.com/rabbitmq/debian $(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.



[https://computingforgeeks.com/how-to-install-latest-rabbitmq-server-on-ubuntu-18-04-lts/]

[https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-18-04-lts/]

0条评论 顺序楼层
请先登录再回复