【问题标题】:Starting amqp-consume on Debian 8在 Debian 8 上启动 amqp-consume
【发布时间】: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:// 上尝试了各种方法,但都不起作用。

【问题讨论】:

标签: amqp rabbitmqctl


【解决方案1】:

我在其他网站https://qpid.apache.org/releases/qpid-0.30/programming/book/QpidJNDI.html 得到了答案,但我仍然想知道为什么这个答案不在“man amqp-consume”或 rabbitmq 网站上......

对我有用的命令是:

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

amqp-publish -u amqp://test:test@ustorageprod/%2f -r "queue.udrive.ustorage" -e "directExchangeUdrive" -b "$msg"

【讨论】:

    猜你喜欢
    • 2013-03-07
    • 2016-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多