更新时间:2022-02-22 07:51:09
如果你不关心管理数据库中的数据;即users
、vhosts
、messages
等,其他queues
都没有,那么你可以reset
通过命令行按顺序运行以下命令:
If you do not care about the data in management database; i.e. users
, vhosts
, messages
etc., and neither about other queues
, then you can reset
via commandline by running the following commands in order:
警告:除了队列之外,这还将删除任何用户
和vhosts
,你已经在你的RabbitMQ服务器上进行了配置;并将删除任何持久的消息
WARNING: In addition to the queues, this will also remove any
users
andvhosts
, you have configured on your RabbitMQ server; and will delete any persistentmessages
rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app
rabbitmq 文档 说reset
命令:
将 RabbitMQ 节点返回到其原始状态.
Returns a RabbitMQ node to its virgin state.
从它所属的任何集群中删除节点,从其中删除所有数据管理数据库,例如配置的用户和虚拟主机,以及删除所有持久消息.
Removes the node from any cluster it belongs to, removes all data from the management database, such as configured users and vhosts, and deletes all persistent messages.
所以,小心使用它.