【问题标题】:RabbitMQ list queue only for specific queue via Command lineRabbitMQ 仅通过命令行列出特定队列的队列
【发布时间】:2017-01-20 05:48:08
【问题描述】:

我想知道list the message_unacknowledged of specific queue 是否可行?我的意思是我在 1 个虚拟主机中有 4-5 个队列,但我只想查看 message_unacknowledged 的特定队列。

这是我的命令:

C:\Python26\python.exe C:\Python26\rabbitmqadmin.exe --host %host% --port 443 --ssl --user %user% --password %password% list queues messages_unacknowledged

输出: Output of with name

这是我只想看到的。 enter image description here

谢谢!

【问题讨论】:

    标签: queue rabbitmq command-line-interface amqp


    【解决方案1】:

    如果你运行这个命令

    C:\Python26\python.exe C:\Python26\rabbitmqadmin.exe help subcommands
    

    它将显示您可以运行的所有命令。 不幸的是,您无法获取特定队列的消息数。

    但是你可以编写一个脚本来点击这个 url,它会返回一个 Json,其中包含有关队列的所有详细信息

    http://username:password@queue-server:15672/api/queues/%2f/queue_name
    

    【讨论】:

      猜你喜欢
      • 2011-05-31
      • 1970-01-01
      • 2021-06-14
      • 2012-03-27
      • 2016-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多