查看当前所有用户
rabbitmqctl list_users
添加帐号:name 密码:passwd
rabbitmqctl add_user name passwd
赋予其administrator角色
rabbitmqctl set_user_tags name administrator
删除角色
rabbitmqctl delete_user Username
设置权限
rabbitmqctl set_permissions -p / name “." ".” “.*”
查看用户的权限
rabbitmqctl list_user_permissions username
rabbitmqctl delete_user Username