Wonderjar's Blog

rabbitmqadmin CMD

2019-07-17

./rabbitmqadmin -u XXX -p XXX -V / list queues
./rabbitmqadmin -u XXX -p XXX -V / list bindings
./rabbitmqadmin -u XXX -p XXX -V / list exchanges

./rabbitmqadmin -u XXX -p XXX declare exchange name=XXX type=topic
./rabbitmqadmin -u XXX -p XXX declare queue name=XXX durable=true
./rabbitmqadmin -u XXX -p XXX declare binding source=”XXX” destination_type=”queue” destination=”XXX” routing_key=”XXX”

./rabbitmqadmin -u XXX -p XXX -V / get queue=XXX count=1
./rabbitmqadmin -u XXX -p XXX -V / get queue=XXX count=1 ackmode=ack_requeue_false
./rabbitmqadmin -u XXX -p XXX publish exchange=XXX routing_key=XXX payload=’{“test”:1}’

Tags: Server