Skip to content

Instantly share code, notes, and snippets.

@hewersonfreitas
Created February 6, 2020 19:43
Show Gist options
  • Save hewersonfreitas/a05ac9536084795f51e2672f30625679 to your computer and use it in GitHub Desktop.
Save hewersonfreitas/a05ac9536084795f51e2672f30625679 to your computer and use it in GitHub Desktop.
# - create access in rabbitmq
echo "write name User Rabbit"
read user_rabbit
echo "write password User Rabbit"
read -s password_rabbit
sudo rabbitmqctl add_user ${user_rabbit} ${password_rabbit} &&
sudo rabbitmqctl set_user_tags ${user_rabbit} administrator &&
sudo rabbitmqctl set_permissions -p / ${user_rabbit} ".*" ".*" ".*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment