Skip to content

Instantly share code, notes, and snippets.

@victorpendleton
Created March 7, 2019 16:53
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 victorpendleton/f6f14eb6f96c9808fb94be68fb929fcd to your computer and use it in GitHub Desktop.
Save victorpendleton/f6f14eb6f96c9808fb94be68fb929fcd to your computer and use it in GitHub Desktop.
# https://www.rabbitmq.com/rabbitmqctl.8.html
# Create virtual host
sudo rabbitmqctl add_vhost host_name
# Create user
sudo rabbitmqctl add_user user password
# Set tags for user
sudo rabbitmqctl set_user_tags user [administrator|management]
# Set user permissions
# set_permissions -p virtual_host user configure_perms write_perms read_perms
sudo rabbitmqctl set_permissions -p vhost user ".*" ".*" ".*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment