当我输入以下命令并重定向到文本文件时,以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
答案 0 :(得分:2)
尝试这种方式:
$ ./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
检查您的用户权限。