0
我以前在debian 7下使用amqp-consume使用下面的这个命令,但我安装了debian 8我认为amqp-tools是不同的,它不能识别我的命令。在Debian 8上启动amqp-consumption
我注意到一些变化。我的web界面改变从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://并dodn't工作。
检查使用哪个librabbitmq版本。这些工具随它而来。如果有疑问 - 请检查amqp-consume的来源 - https://github.com/alanxz/rabbitmq-c/blob/master/tools/consume.c – pinepain