Last active
April 26, 2021 20:08
-
-
Save UbuntuEvangelist/914374070eb9edc122b3f91cfcdbb248 to your computer and use it in GitHub Desktop.
RabbitMQ Server on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y | |
| ## Team RabbitMQ's main signing key | |
| sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA" | |
| ## Launchpad PPA that provides modern Erlang releases | |
| sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F77F1EDA57EBB1CC" | |
| ## PackageCloud RabbitMQ repository | |
| sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F6609E60DC62814E" | |
| ## Add apt repositories maintained by Team RabbitMQ | |
| sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF | |
| ## Provides modern Erlang/OTP releases | |
| ## | |
| ## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release. | |
| ## See the release to distribution mapping table in RabbitMQ doc guides to learn more. | |
| deb http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal main | |
| deb-src http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal main | |
| ## Provides RabbitMQ | |
| ## | |
| ## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release. | |
| ## See the release to distribution mapping table in RabbitMQ doc guides to learn more. | |
| deb https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ focal main | |
| deb-src https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ focal main | |
| EOF | |
| ## Update package indices | |
| sudo apt-get update -y | |
| ## Install Erlang packages | |
| 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-server and its dependencies | |
| sudo apt-get install rabbitmq-server -y --fix-missing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment