添加用户
rabbitmqctl add_user user_name
添加vhost
rabbitmqctl add_vhost vhost_name
赋予用户管理员权限
rabbitmqctl set_user_tags user_admin administrator
为用户赋予权限
rabbitmqctl set_permissions -p vhost_name user_name '.*' '.*' '.*'
rabbitmqctl add_user user_name
rabbitmqctl add_vhost vhost_name
rabbitmqctl set_user_tags user_admin administrator
rabbitmqctl set_permissions -p vhost_name user_name '.*' '.*' '.*'