美文网首页
ubuntu18.04/20.04下RabbitMQ安装

ubuntu18.04/20.04下RabbitMQ安装

作者: 海外党一枚 | 来源:发表于2020-11-17 11:00 被阅读0次

    !/bin/sh

    If sudo is not available on the system,

    uncomment the line below to install it

    apt-get install -y sudo

    sudo apt-get update -y

    Install prerequisites

    sudo apt-get install curl gnupg -y

    Install RabbitMQ signing key

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

    Install apt HTTPS transport

    sudo apt-get install apt-transport-https

    Add Bintray repositories that provision latest RabbitMQ and Erlang 23.x releases

    sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF

    Installs the latest Erlang 23.x release.

    Change component to "erlang-22.x" to install the latest 22.x version.

    "bionic" as distribution name should work for any later Ubuntu or Debian release.

    See the release to distribution mapping table in RabbitMQ doc guides to learn more.

    deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang

    Installs latest RabbitMQ release

    deb https://dl.bintray.com/rabbitmq/debian bionic main
    EOF

    Update package indices

    sudo apt-get update -y

    Install rabbitmq-server and its dependencies

    sudo apt-get install rabbitmq-server -y --fix-missing

    相关文章

      网友评论

          本文标题:ubuntu18.04/20.04下RabbitMQ安装

          本文链接:https://www.haomeiwen.com/subject/xrkxiktx.html