php7 安裝rabbitmq 擴充套件

玫瑰碼農發表於2020-11-14

# 安裝rabbitmq-c ( 最好下載 0.5的,0.6安裝可能會報錯)

# 版本下載:https://github.com/alanxz/rabbitmq-c/releases/tag/v0.5.0

wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.5.0/rabbitmq-c-0.5.0.tar.gz

tar -zxvf rabbitmq-c-0.5.0.tar.gz

cd rabbitmq-c-0.5.0/

autoreconf -i

./configure --prefix=/usr/local/rabbitmq-c

make

make install

wget http://pecl.php.net/get/amqp-1.8.0.tgz
tar -zxvf amqp-1.8.0.tgz
cd amqp-1.8.0
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c/
make
make install

相關文章