我有一個問題,我想使用 Curl 和 HTTP API 洗掉 RabbitMQ 上的佇列和交換。
我想使用 2 個選項--if-empty=true和--if-unused=true.
但是當我將它與 curl 一起使用時,出現錯誤。
kalenas@localhost:~$ curl -XDELETE ${RABBIT_URL}/api/queues/<scope>/<queue> --if-empty=true --if-unused=true;
curl: option --if-empty=true: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
你有什么想法嗎?
uj5u.com熱心網友回復:
利用
curl -XDELETE $RABBIT_URL/api/queues/$VHOST/<queue> -G -d 'if-empty=true' -d 'if-empty=true'
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/378705.html
上一篇:限制惰性列中的專案
