rabbitmq error when connect

余生长醉 提交于 2019-12-10 17:15:03

问题


i got this error when i try to connect using php-amqp: Fatal error: Class 'AMQPConnection' not found in

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

回答1:


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.



来源:https://stackoverflow.com/questions/5424419/rabbitmq-error-when-connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!