CentOS7 php install amqp extension

不言
Release: 2023-03-24 13:00:02
Original
2419 people have browsed it

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
Copy after login

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
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template