brew services start rabbitmq
docker版:
docker run -it --rm --name rabbitmq -p 5673:5672 -p 15672:15672 rabbitmq:3 -management
rabbitmqctl version
rabbitmqctl --help
查看状态
rabbitmqctl status
查看绑定
rabbitmqctl list_bindings
查看channel
rabbitmqctl list_channels
查看connection(连接信息)
rabbitmqctl list_connections
查看消费者:
rabbitmqctl list_consumers
查看交换机
rabbitmqctl list_exchanges
查看队列
rabbitmqctl list_queues
删除队列
rabbitmqctl delete_queue
清空队列
rabbitmqctl purge_queue
新建用户
rabbitmqctl add_user
修改用户密码
rabbitmqctl change_password
删除用户
rabbitmqctl delete_user
查看用户
rabbitmqctl list_users
启动应用
rabbitmqctl start_app
关闭应用
rabbitmqctl stop_app # 宝丽路Erlang虚拟机(暂停)
关闭应用
rabbitmqctl stop # 并关闭Erlang虚拟机
加入集群
rabbitmqctl join_cluster
离开集群
rabbitmqctl reset
设置镜像队列
rabbitmqctl sync_queue
取消镜像队列
rabbitmqctl cancel_sync_queue