【问题标题】:Connect RabbitMQ in a external host - PHP在外部主机中连接 RabbitMQ - PHP
【发布时间】:2015-01-15 15:59:49
【问题描述】:

我正在尝试使用rabbitMq 连接外部主机,但我遇到了问题。 我拥有的数据是:

HOST: A IP from HOST - OK
PORT: PORT from HOST - OK
CHANNEL: TESTE.TESTE
GENERAL: TESTE

要连接的代码是:

$connection = new AMQPConnection('HOST', PORT, '', '');
$channel = $connection->channel();

问题是:如何使用频道?
错误是:

Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error Connecting to server(110): Connection timed out.

对不起英语。

【问题讨论】:

    标签: php rabbitmq message-queue


    【解决方案1】:

    您是否使用用户名和密码进行连接?此外,RabbitMQ 禁止以 guest:guest 身份从远程主机连接。见https://www.rabbitmq.com/access-control.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-25
      • 1970-01-01
      • 2018-11-06
      • 1970-01-01
      相关资源
      最近更新 更多