现添加admin,密码admin,管理员权限
add_userrabbitmqctl 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
Leave a Reply