Is it possible to view RabbitMQ message contents directly from the command line?

后端 未结 6 1469
Happy的楠姐
Happy的楠姐 2020-12-22 17:54

Is it possible to view RabbitMQ message contents directly from the command line?

sudo rabbitmqctl list_queues lists the queues.

Is there any comma

6条回答
  •  无人及你
    2020-12-22 18:34

    If you want multiple messages from a queue, say 10 messages, the command to use is:

    rabbitmqadmin get queue= ackmode=ack_requeue_true count=10
    

    If you don't want the messages requeued, just change ackmode to ack_requeue_false.

提交回复
热议问题