Created
September 29, 2019 06:58
-
-
Save l0n3woof/34601fa4c5697a1a7f89557a436d2a43 to your computer and use it in GitHub Desktop.
This file can be used for automating the rabbitmq installation, as it has a lot to download and configure just run this file to using bash command to ge it done using single command.
This file contains 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 | |
## 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 21.x releases | |
sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF | |
## Installs the latest Erlang 21.x release. | |
## Change component to "erlang" to install the latest version (22.x or later). | |
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang-21.x | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment