Think before you speak, read before you think.

rabbitmq添加用户

现添加admin,密码admin,管理员权限

add_user  
rabbitmqctl add_user admin admin
rabbitmqctl list_users
rabbitmqctl set_user_tags admin administrator
rabbitmqctl list_users

添加成功后赋权限

rabbitmqctl set_permissions -p / myuser ".*" ".*" ".*"

测试用户名密码正确性

curl -i -u 'admin':'123456'  rabbitmq.foobar.io:15672/api/whoami

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *