Skip to content

Instantly share code, notes, and snippets.

@bcchenbc
Created January 2, 2017 01:16
Show Gist options
  • Save bcchenbc/07a71178b0e0dd46307864924f1ee95f to your computer and use it in GitHub Desktop.
Save bcchenbc/07a71178b0e0dd46307864924f1ee95f to your computer and use it in GitHub Desktop.
Prepare Rabbitmq server on new system
# install current version
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/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
# enable web interface
rabbitmq-plugins enable rabbitmq_management
# create admin account, guest/guest doesn't seem to work
# http://stackoverflow.com/questions/23669780/rabbitmq-3-3-1-can-not-login-with-guest-guest
sudo rabbitmqctl add_user admin password
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
# remember to allow port 5672 and 15672
echo $(hostname -I | xargs):15672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment