Created
January 2, 2017 01:16
-
-
Save bcchenbc/07a71178b0e0dd46307864924f1ee95f to your computer and use it in GitHub Desktop.
Prepare Rabbitmq server on new system
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
# 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