linux下php安装amqp扩展

1,安装rabbitmq-c

下载地址:https://github.com/alanxz/rabbitmq-c/releases

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,安装amqp

官网下载地址:http://pecl.php.net/package/amqp

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

extension = amqp.so

linux下php安装amqp扩展

上一篇:最小割板子题——[USACO5.4]奶牛的电信


下一篇:android studio使用openssl