RabbitMQ install (Ubuntu)

 

1. key

       using 1) or 2).html

    1) Offline way

curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -

 

    2) Online way

sudo apt-key adv --keyserver "hkps.pool.sks-keyservers.net" --recv-keys "0x6B73A36E6026DFCA"

 

 

2. install Erlang

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb

 

sudo apt-get update
sudo apt-get install erlang-nox

 

 

 

3. install RabbitMQ Server

    1) set source

    若是不設定此步,則系統默認使用Ubuntu更新服務器上的RabbitMQ(v3.5.7)git

 

Ubuntu 16.04:github

echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list

 

Ubuntu 18.04:ubuntu

echo "deb https://dl.bintray.com/rabbitmq/debian bionic main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list

 

 

    2) install

sudo apt-get update
sudo apt-get install rabbitmq-server

 

 

 

Reference:bash

    1. install-debian服務器

    2. How to Install RabbitMQ Server on Ubuntu 18.04 & 16.04 LTScurl

相關文章
相關標籤/搜索