0
点赞
收藏
分享

微信扫一扫

PHP安装amqp

亿奇学 2021-09-10 阅读 79
Rabbitmq

yum install librabbitmq-devel

wget https://pecl.php.net/get/amqp-1.9.4.tgz

tar zxf amqp-1.9.4.tgz

/usr/bin/phpize

./configure --with-php-config=/usr/bin/php-config --with-amqp
make && make install

cd /etc/php.d
cp curl.ini  amqp.ini
vi amqp.ini
修改extension=amqp.so

systemctl restart php-fpm

备注:若找不到/usr/bin/php-confg (yum install php70w-devel)

举报

相关推荐

0 条评论