2015-10-05 63 views
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工作。

+0

检查使用哪个librabbitmq版本。这些工具随它而来。如果有疑问 - 请检查amqp-consume的来源 - https://github.com/alanxz/rabbitmq-c/blob/master/tools/consume.c – pinepain

回答

0

我得到了答案,在其他网站https://qpid.apache.org/releases/qpid-0.30/programming/book/QpidJNDI.html,但我仍然不知道知道为什么这个答案是不是在“人AMQP的消费”或RabbitMQ的网站....

命令的工作对我来说是:

amqp-consume -d -u amqp://test:[email protected]/%2f -q queue.udrive.admin.uiscsi -e "directExchangeUdrive" -r "" /bin/bash remoteManageUiSCSI.sh 

amqp-publish -u amqp://test:[email protected]/%2f -r "queue.udrive.ustorage" -e "directExchangeUdrive" -b "$msg"