时间:2021-07-01 10:21:17 帮助过:13人阅读
继续安装完 rabbitmq后,安装最新 php amqp扩展
http://www.cnblogs.com/8000cabbage/p/7788575.html
参考:carson
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.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
2安装amqp
官网:http://pecl.php.com/package/amqp
下载最新版
wget -c http://pecl.php.com/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
3.php.ini 添加模块
vi /usr/local/php/etc/php.ini
增加
extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/amqp.so
systemctl restart php-fpm
查看phpinfo()
点击打开链接
相关推荐:
CentOs7搭建PHP环境
以上就是CentOS7 php 安装 amqp扩展的详细内容,更多请关注Gxl网其它相关文章!