RabbitMQ - Create Queue using the rabbitmqadmin command

This assumes you have downloaded and setup the rabbitmqadmin command line tool.

declare queue can be used to create a queue. In this example, a durable queue named queue001 is created in vhost /.

rabbitmqadmin declare queue --vhost=foo name=a.queue durable=true

 

And here is how you would include arguments.

rabbitmqadmin declare queue --vhost=foo name=a.queue durable=true arguments='{"x-queue-mode":"lazy"}'

 

If the queue is created, the following should be returned.

queue declared

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter a3824 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |