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

 

posted on 2021-03-06 10:46  许一朵岁月  阅读(144)  评论(0编辑  收藏  举报