$conn = new AMQPConnection($HOST, $PORT, $USER, $PASS);
$ch = $conn->channel();
$ch->access_request($VHOST, false, false, true, true);
$ch->queue_declare($QUEUE);
$ch->exchange_declare($EXCHANGE, 'topic', false, false, false);
$ch->queue_bind($QUEUE, $EXCHANGE, 'usa.#');
订阅:
博文评论 (Atom)
没有评论:
发表评论