Home  >  Article  >  Backend Development  >  CentOS7 php install amqp extension

CentOS7 php install amqp extension

不言
不言Original
2018-04-20 10:11:192407browse

This article mainly introduces CentOS7 php to install amqp extension. It has certain reference value. Now I share it with everyone. Friends in need can refer to it.

After installing rabbitmq, install the latest php amqp extension.

http://www.cnblogs.com/8000cabbage/p/7788575.html

##Reference: carson

1. Installation rabbitmq-c

https://github.com/alanxz/rabbitmq-c/releases

Install the latest version //The downloading process may take a long time


CentOS7 php install amqp extension##

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.gz

cd rabbitmq-c-0.8.0./configure --prefix=/usr/local/rabbitmq-c-0.8.0make && make install

CentOS7 php install amqp extension2Install 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.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.0make && make install
CentOS7 php install amqp extension

CentOS7 php install amqp extension

##3 .php.ini Add module

vi /usr/local/php/etc/php.ini

Add

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

Related recommendations:

CentOs7 to build a PHP environment

The above is the detailed content of CentOS7 php install amqp extension. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn