您可以使用HTTP API执行此操作:
例如,具有所有属性的队列列表:
curl -u guest:guest 'localhost:15672/api/queues'
你必须找到:
"mode": "lazy"
或
"arguments": {
"x-queue-mode": "lazy"
},
简单地说:
curl -u guest:guest \
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
或
curl -u guest:guest \
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
或者用某种语言。