简体   繁体   English

RabbitMQ 导出虚拟主机配置

[英]RabbitMQ export vhost config

I'm running RMQ 3.83 (Erlang 22.3.1), and I am looking to export a single vhost only, with all it's relevant config (exchanges/queues/users) and then import it into our dev environment after changing a few values.我正在运行 RMQ 3.83 (Erlang 22.3.1),并且我希望仅导出单个虚拟主机及其所有相关配置(交换/队列/用户),然后在更改一些值后将其导入我们的开发环境。

Is there a way I can do that with rabbitmqadmin, was looking around and have only found articles relating to a full RMQ config/definition export, which is not what I am aiming to do.有没有办法可以用 rabbitmqadmin 做到这一点,环顾四周,只找到与完整 RMQ 配置/定义导出相关的文章,这不是我的目标。

would this command do?:这个命令会做吗?:

rabbitmqadmin export -V vhost vhost.json rabbitmqadmin export -V vhost vhost.json

About the environment:关于环境:

The RMQ app is running on an Ubuntu 20.4 three node cluster. RMQ 应用程序在 Ubuntu 20.4 三节点集群上运行。

Any help would be appreciated.任何帮助,将不胜感激。

Thanks.谢谢。

Yes, that command will get the list of exchanges, queues, and bindings for the specified vhost.是的,该命令将获取指定虚拟主机的交换、队列和绑定列表。

This will effectively call the http api endpoint api/definitions/vhost?download=vhost.json这将有效地调用 http api 端点 api/definitions/vhost?download=vhost.json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM