ubuntu18.x.x安装rabbitmq

首先需要安装erlang,不同版本的rabbitmq需要不同的erlang

可以参考官网的版本。

首先添加密钥

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

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

其次设置下载源

建立文件/etc/apt/sources.list.d/bintray.erlang.list

将其内容变为

deb http://dl.bintray.com/rabbitmq-erlang/debian stretch erlang

然后安装sudo apt-get update

sudo apt-get install erlang-nox

然后安装rabbitmq

加入密钥

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

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

设置源

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-getinstall rabbitmq-server

你可能感兴趣的:(ubuntu18.x.x安装rabbitmq)