docker容器运行MQ
docker run -d --name rabbitmq3.7.7 -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname myRabbit -e RABBITMQ_DEFAULT_VHOST=my_vhost 镜像ID
1、进入正在运行的docker容器
docker exec -it master-rabbitmq bash
2、查看用户
root@master_rabbitmq:/# rabbitmqctl list_users
Listing users ...
user tags
3、修改用户密码
rabbitmqctl change_password admin '123456'
4、设置管理员权限
[root@CentOS /]# rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator] ...
[root@CentOS /]# rabbitmqctl list_users
Listing users ...
admin [administrator]
注意要将阿里云的安全组打开