Linux下安装RabbitMQ

以Debian and Ubuntu为例,通过以下步骤进行安装:

  • Add (import) repository signing key. apt will verify package signatures during installation.

添加(导入)软件库签名密钥,apt将在安装过程中验证包签名。

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

sudo apt-get install apt-transport-https
  • Add a source list file for the repository(以ubuntu 18.04为例)

## Add Bintray repositories that provision latest RabbitMQ and Erlang 23.x releases
sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <
  • Update package metadata

## Update package indices
sudo apt-get update -y
  • Install Erlang Packages

# This is recommended. Metapackages such as erlang and erlang-nox must only be used
# with apt version pinning. They do not pin their dependency versions.
sudo apt-get install -y erlang-base \
                        erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
                        erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
                        erlang-runtime-tools erlang-snmp erlang-ssl \
                        erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
  • Install RabbitMQ Package

sudo apt-get install -y rabbitmq-server
  • Run RabbitMQ Server

service rabbitmq-server start

可以从Package Cloud 或 Bintray 中的任一仓库中安装最近的RabbitMQ版本,PackageCloud提供了一种更不灵活、自动化的存储库设置方式。而Bintray的安装设置方式更接近大多数的第三方软件库,所以此处是通过Bintray库来安装的。
详细安装文档链接: Install: Debian and Ubuntu

你可能感兴趣的:(Linux下安装RabbitMQ)