简体   繁体   English

如何删除RabbitMQ交易所?

[英]How to delete a RabbitMQ exchange?

This seems like a very basic operation but I cannot find a way to delete a named exchange in RabbitMQ. 这似乎是一个非常基本的操作,但是我找不到在RabbitMQ中删除命名交换的方法。 I'm running it on Windows and using the command line tools. 我正在Windows上运行它并使用命令行工具。 At this point I would settle for a .NET API call to delete an exchange, if there exists one. 此时,如果存在一个交换,我将决定进行一个.NET API调用以删除一个交换。 Thank you. 谢谢。

Management plugin is fine, if you don't need to do it programmatically (but your question indicates otherwise). 如果您不需要以编程方式进行管理,则管理插件很好用(但是您的问题表明不是这样)。

There is a command in the .NET API to delete the exchange. .NET API中有一个命令来删除交换。 It's IModel.ExchangeDelete - which is also clearly called out in the API Specification . 它是IModel.ExchangeDeleteAPI规范中也清楚地标出了它。

Figured it out. 弄清楚了。 Just use the Rabbit MQ Management Plugin . 只需使用Rabbit MQ管理插件即可

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

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