1.创建虚拟主机
1 | # rabbitmqctl add_vhost vhostpath |
2.删除虚拟主机
1 | # rabbitmqctl delete_vhost vhostpath |
3.列出所有虚拟主机
1 | # rabbitmqctl list_vhosts |
4.设置用户权限
1 | # rabbitmqctl set_permissions [-p vhostpath] username regexp regexp regexp |
5.清除用户权限
1 | # rabbitmqctl clear_permissions [-p vhostpath] username |
6.列出虚拟主机上的所有权限
1 | # rabbitmqctl list_permissions [-p vhostpath] |
7.列出用户权限
1 | # rabbitmqctl list_user_permissions username |