rabbitmq 删除所有队列及服务重启脚本

#!/bin/bash
# 删除元数据
rm -rf /var/lib/rabbitmq/mnesia
# 重启rabbitmq
rabbitmqctl stop
systemctl restart rabbitmq-server
# 添加用户
rabbitmqctl add_user admin 123456
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'

  

posted @ 2019-12-19 14:26  RoyFans  阅读(1590)  评论(0编辑  收藏  举报