2015-10-05 27 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"