开发者

rabbitmq error when connect

开发者 https://www.devze.com 2023-02-20 03:32 出处:网络
i got this error when i try to connect using php-amqp: Fatal error: Class \'AMQPConnecti开发者_开发问答on\' not found in

i got this error when i try to connect using php-amqp: Fatal error: Class 'AMQPConnecti开发者_开发问答on' not found in

$credentials =array('host' => 'localhost','port' => 5672);
$cnn = new AMQPConnection($credentials);
$cnn->connect();


It looks like you don't have the AMQP PECL extension installed. That PECL extension is not a default part of PHP, so you'll need to compile and install it using the pecl tool.

0

精彩评论

暂无评论...
验证码 换一张
取 消