After continuing to install rabbitmq, install the latest php amqp extension
http://www.cnblogs.com/8000cabbage/p/7788575.html
Reference: carson
1. Install rabbitmq-c
https://github.com/alanxz/rabbitmq-c/releases
The process of installing the latest version//downloading may take a while
wget -c https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gz tar zxf rabbitmq-c-0.8.0.tar.gz cd rabbitmq-c-0.8.0 ./configure --prefix=/usr/local/rabbitmq-c-0.8.0 make && make install
2 install amqp
Official website: http://pecl.php.net/package/amqp
Download the latest version
wget -c http://pecl.php.net/get/amqp-1.9.3.tgz tar zxf amqp-1.9.3.tgz cd amqp-1.9.3 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c-0.8.0 make && make install
3.php.ini add module
vi /usr/local/php/etc/php.ini
Increase
extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/amqp.so
systemctl restart php-fpm
View phpinfo()
Click to open the link