Skip to content

Instantly share code, notes, and snippets.

@mtkuyucu
Forked from achmadns/activate-rabbitmqadmin.sh
Created October 9, 2017 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtkuyucu/14cae984092428c5d8c444857eb5693d to your computer and use it in GitHub Desktop.
Save mtkuyucu/14cae984092428c5d8c444857eb5693d to your computer and use it in GitHub Desktop.
Activate rabbitmqadmin
#/bin/bash
# these action should be run with sudo level
# activate management plugin first
rabbitmq-plugins enable rabbitmq_management
# restart the rabbitmq-server
service rabbitmq-server restart
# download the rabbitmqadmin script locally
curl -S http://localhost:15672/cli/rabbitmqadmin > /usr/local/bin/rabbitmqadmin
# make it executable
chmod +x /usr/local/bin/rabbitmqadmin
# add bash completion script
rabbitmqadmin --bash-completion > /etc/bash_completion.d/rabbitmqadmin
# exit or open new bash session to test the bash completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment