Skip to content

Instantly share code, notes, and snippets.

@sdieunidou
Created October 22, 2015 19:51
Show Gist options
  • Save sdieunidou/1813409ddfd0185c82c7 to your computer and use it in GitHub Desktop.
Save sdieunidou/1813409ddfd0185c82c7 to your computer and use it in GitHub Desktop.
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@valugi
Copy link

valugi commented Aug 4, 2017

test using:
curl -i -u test:test http://localhost:15672/api/whoami

@akhilputhiry
Copy link

akhilputhiry commented Nov 16, 2017

for the above one to work we need to enable the management plugin I guess

rabbitmq-plugins enable rabbitmq_management

@santosgabriel
Copy link

Works fine the solution of adding the user with rabbitmqctl command, specially when you don't have access to a decent browser to acess the rabbitmq_management's web page 👍

@jmikon7
Copy link

jmikon7 commented Jun 25, 2018

Works fine! Thank you!

@alexsplashex
Copy link

Thanks

@thiagobitencourt
Copy link

Works like a charm. Thank you!

@Fhwang0926
Copy link

thanks

@jaganysa
Copy link

Thanks its working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment