This article mainly introduces the CentOS7 PHP installation AMQP extension, has a certain reference value, now share to everyone, the need for friends can refer to
After you continue installing RABBITMQ, install the latest PHP AMQP extension
Http://www.cnblogs.com/8000cabbage/p/7788575.html
Reference: Carson
1. Installing Rabbitmq-c
Https://github.com/alanxz/rabbitmq-c/releases
Install the latest version//download process may be a bit long
Wget-c Https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gztar ZXF RABBITMQ-C-0.8.0.TAR.GZCD rabbitmq-c-0.8.0./configure--prefix=/usr/local/rabbitmq-c-0.8.0make && make Install
2 Installing AMQP
Official website: HTTP://PECL.PHP.NET/PACKAGE/AMQP
Download the latest version
Wget-c Http://pecl.php.net/get/amqp-1.9.3.tgztar zxf amqp-1.9.3.tgzcd 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.0make && make Install
3.php.ini adding modules
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 link