(1)首先关闭rabbitmq: rabbitmqctl stop_app
(2)还原: rabbitmqctl reset
(3)启动: rabbitmqctl start_app
(4)添加用户: rabbitmqctl add_user root root
(5)设置权限:rabbitmqctl set_permissions -p / root ".*" ".*" ".*"
(6)查看用户: rabbitmqctl list_users
-----------------------------------------------以上为早期的从网上找的方法,如果仅是清空某个队列则用
rabbitmqctl purge_queue QueueName
这样就可以清空指定的队列