rabbitmq异常删除host数据,重新重启创建

#!/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 @ 2020-06-08 10:50  zipon  阅读(397)  评论(0编辑  收藏  举报