1.杀掉mq进程
2.找到mq mnesia存储目录 ,默认/var/lib/rabbitmq/mnesia/,删掉
3.service rabbitmq-server start
4.重新初始化账户
rabbitmqctl add_user mytest mytest
rabbitmqctl set_user_tags mytest administrator
rabbitmqctl set_permissions -p / mytest ".*" ".*" ".*"
1.杀掉mq进程
2.找到mq mnesia存储目录 ,默认/var/lib/rabbitmq/mnesia/,删掉
3.service rabbitmq-server start
4.重新初始化账户
rabbitmqctl add_user mytest mytest
rabbitmqctl set_user_tags mytest administrator
rabbitmqctl set_permissions -p / mytest ".*" ".*" ".*"
本文标题:rabbitmq:如何清理rabbitmq数据并重启服务
本文链接:https://www.haomeiwen.com/subject/smciphtx.html
网友评论