Skip to content

Instantly share code, notes, and snippets.

@arukaen
arukaen / rabbitmq_ubuntu.sh
Created December 14, 2017 20:29 — forked from davideicardi/rabbitmq_ubuntu.sh
Install rabbitmq on ubuntu and configure the cluster
Run the following script on each machine of the cluster:
sudo add-apt-repository 'deb http://www.rabbitmq.com/debian/ testing main'"
sudo apt-get update
sudo apt-get -q -y --force-yes install rabbitmq-server=3.4.1-1
sudo invoke-rc.d rabbitmq-server stop
echo 'MYCOOKIEVALUE' | sudo tee /var/lib/rabbitmq/.erlang.cookie
sudo chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
sudo chmod 400 /var/lib/rabbitmq/.erlang.cookie