using 1) or 2).html
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-key adv --keyserver "hkps.pool.sks-keyservers.net" --recv-keys "0x6B73A36E6026DFCA"
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
若是不設定此步,則系統默認使用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
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