终端上添加RabbitMQ 队列

Eave 2016.08.18 17:14

下载rabbitmqadmin插件

下载地址:http://192.168.10.8:15672/cli/rabbitmqadmin

01、查看所有交换机

rabbitmqadmin list exchanges

02、查看所有队列

rabbitmqadmin list queues

03、查看所有Binding

rabbitmqadmin list bindings

04、查看所有虚拟主机

rabbitmqadmin list vhosts

05、查看所有用户信息

rabbitmqadmin list users

06、查看所有权限信息

rabbitmqadmin list connections

07、查看所有通道信息

rabbitmqadmin list channels

08、创建交换机

rabbitmqadmin declare exchange name=Exchange type=direct/fanout/x-delayed-message durable=true auto_delete=false arguments='{"x-delayed-type":"direct"}'

09、创建队列

rabbitmqadmin declare queue name=Queue durable=true auto_delete=false

10、交换机和队列绑定

rabbitmqadmin declare binding source=Exchange destination=Queue routing_key=Routing

12、交换机和队列取消绑定

rabbitmqadmin delete binding source=Exchange destination=Queue properties_key=Routing destination_type=queue

13、查看队列中的消息不消费

rabbitmqadmin get queue=Queue

13、查看队列中的消息并消费

rabbitmqadmin get queue=Queue requeue=false

14、清空队列中的消息

rabbitmqadmin purge queue name=Queue