# 先进入docker容器内部
docker exec -it containerId /bin/bash
用户操作
# 添加用户 rabbitmqctl add_user {username} {password}
rabbitmqctl add_user admin 123456
#修改用户密码 rabbitmqctl change_password {username} {newpassword}
rabbitmqctl change_password admin 123456
#验证用户密码
rabbitmqctl authenticate_user admin 123456
#删除用户
rabbitmqctl delete_user admin
#列出用户
rabbitmqctl list_users
# 给用户设置标签 none management monitoring administrator 多个用,分隔
#rabbitmqctl set_user_tags {username} {tag ...}
rabbitmqctl set_user_tags admin administrator
作者:kq1983
来源:CSDN
原文:https://blog.csdn.net/kq1983/article/details/84112762
版权声明:本文为博主原创文章,转载请附上博文链接!
Comments | NOTHING