从 RabbitMQ 中删除所有队列? [英] Delete all the queues from RabbitMQ?

查看:32
本文介绍了从 RabbitMQ 中删除所有队列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 rabbitmqadmin 并且能够列出所有的交换和队列.如何使用 rabbitmqadminrabbitmqctl 删除所有队列.

I installed rabbitmqadmin and was able to list all the exchanges and queues. How can I use rabbitmqadmin or rabbitmqctl to delete all the queues.

推荐答案

首先,列出你的队列:

rabbitmqadmin 列表队列名称

然后从列表中,你需要手动将它们一一删除:

Then from the list, you'll need to manually delete them one by one:

rabbitmqadmin 删除队列名称='queuename'

由于输出格式的原因,您可以 grep 来自 list queues 的响应.或者,如果您只是想清除所有内容(阅读:重置所有设置,将安装恢复到默认状态),请使用:

Because of the output format, doesn't appear you can grep the response from list queues. Alternatively, if you're just looking for a way to clear everything (read: reset all settings, returning the installation to a default state), use:

rabbitmqctl stop_app
rabbitmqctl reset    # Be sure you really want to do this!
rabbitmqctl start_app

这篇关于从 RabbitMQ 中删除所有队列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆