docker pull rabbitmq
docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname myRabbit -e RABBITMQ_DEFAULT_VHOST=my_vhost -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq
-- 启动rabbitmq_management
docker exec -it rabbitmq rabbitmq-plugins enable rabbitmq_management
查看rabbit用户
# rabbitmqctl list_users
赋予admin超级管理权限
rabbitmqctl set_user_tags admin administrator