【发布时间】:2015-10-05 23:19:14
【问题描述】:
我曾经在 debian 7 中使用以下命令使用来自 amqp-consume 的消息,但我安装了 debian 8,我认为 amqp-tools 不同,它无法识别我的命令。
我注意到了一些变化。我的网页界面将端口从 55672 更改为 15672。
amqp-consume -d -q queue.udrive.admin.uiscsi -s 10.0.1.251 -p 5672 -e "directExchangeUdrive" --vhost "/" -r "" --username=guest --password=guest /bin/bash remoteManageUiSCSI.sh
error: both --server and --url options specify server host
我认为命令需要它:
amqp-consume
consuming command not specified
Usage: amqp-consume [-dxA?] [-u|--url=amqp://...] [-s|--server=hostname] [--port=port] [--vhost=vhost] [--username=username] [--password=password] [--ssl] [--cacert=cacert.pem] [--key=key.pem] [--cert=cert.pem] [-q|--queue=queue] [-e|--exchange=exchange] [-r|--routing-key=routing key] [-d|--declare] [-x|--exclusive] [-A|--no-ack] [-c|--count=limit] [-p|--prefetch-count=limit] [-?|--help] [--usage] [OPTIONS]... <command> <args>
我在 amqp:// 上尝试了各种方法,但都不起作用。
【问题讨论】:
-
检查使用的 librabbitmq 版本。这些工具随它一起提供。如果有疑问 - 检查 amqp-consume 的来源 - github.com/alanxz/rabbitmq-c/blob/master/tools/consume.c
标签: amqp rabbitmqctl