1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 17:15:27 +02:00
tldr/pages/common/rabbitmqctl-vhosts.md
ramadasmr 5e983d927b
rabbitmqctl-{cluster,users,vhosts}: add page (#17254)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-07-19 04:56:11 +03:00

25 lines
706 B
Markdown

# rabbitmqctl-vhosts
> Manage virtual hosts (vhosts) in RabbitMQ.
> Vhosts are used to separate multiple logical brokers on the same RabbitMQ server.
> More information: <https://www.rabbitmq.com/vhosts.html>.
- List all virtual hosts:
`rabbitmqctl list_vhosts`
- Add a new virtual host:
`rabbitmqctl add_vhost {{vhost_name}}`
- Delete a virtual host:
`rabbitmqctl delete_vhost {{vhost_name}}`
- Set permissions for a user on a specific virtual host:
`rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}} {{read}} {{write}} {{configure}}`
- Clear permissions for a user on a specific virtual host:
`rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}}`