Rabbitmq 命令行不删除队列

问题描述 投票:0回答:1

当我以管理员身份输入以下命令并重定向到文本文件时:

C:\Users\snoopy\Downloads>python.exe rabbitmqadmin.py -H dev-xxx.mydomain.com -P 15672 -u snoopy -p 123 delete queue name="foxbotXb44bacbd-b29c-449b-b5a5984ec3246c9b_control" -> CANNOTDELETE.txt

CANNOTDELETE.txt 的内容如下:

 ERROR: Argument "-" not in format name=value
 rabbitmqadmin.py --help for help

如果我不重定向,只是让错误显示到控制台,我会收到以下访问被拒绝的信息

  C:\Users\snoopy\Downloads>python.exe rabbitmqadmin.py -H dev-xxx.mydomain.com -P 15672 -u snoopy -p Password123 delete queue name="foxbotXb44bacbd-b29c-449b-b5a5-984ec3246c9b_control" *** Access refused: /api/queues/%2F/quebotXb44bacbd-b29c-449b-b5a5-984ec3246c9b_control
rabbitmq
1个回答
3
投票

尝试这样:

 $ ./rabbitmqadmin.py delete queue name='test' -H localhost -P 15672 -u guest -p guest 
    queue deleted

应该可以。

编辑

你没有权限,如果我输入错误的密码(guest1)我也会遇到同样的错误:

$ ./rabbitmqadmin.py delete queue name='test' -H localhost -P 15672 -u guest -p guest1 
*** Access refused: /api/queues/%2F/test

检查您的用户权限。

© www.soinside.com 2019 - 2024. All rights reserved.