Skip to content

Instantly share code, notes, and snippets.

@saydulk saydulk/RabbitMQ.sh
Created Jan 28, 2019

Embed
What would you like to do?
Install RabbitMQ on Ubuntu 16.04
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
cd ~
wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~ubuntu~xenial_amd64.deb
sudo dpkg -i esl-erlang_20.1-1\~ubuntu\~xenial_amd64.deb
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install rabbitmq-server
sudo systemctl start rabbitmq-server.service
sudo systemctl restart rabbitmq-server.service
sudo systemctl reload rabbitmq-server.service
sudo rabbitmqctl add_user masum 01722gausia
sudo rabbitmqctl set_user_tags masum administrator
sudo rabbitmqctl set_permissions -p / masum ".*" ".*" ".*"
sudo rabbitmq-plugins enable rabbitmq_management
sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
wget http://localhost:15672/cli/rabbitmqadmin
chmod +x rabbitmqadmin
sudo mv rabbitmqadmin /usr/local/sbin
# now visit your http://[your-vultr-server-IP]:15672/
rabbitmqctl status | grep rabbit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.