Rabbitmq命令行不删除队列

hjzp0vay  于 12个月前  发布在  RabbitMQ
关注(0)|答案(1)|浏览(233)

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

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

sqxo8psd

sqxo8psd1#

试着这样做:

$ ./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


检查您的用户权限。

相关问题