mkdir rabbitmq-c
cd rabbitmq-c
wget https://github.com/alanxz/rabbitmq-c/tarball/0.2
tar zxvf 0.2
rm -rf 0.2
cd alanxz-rabbitmq-c-f8f4fc7

wget https://github.com/rabbitmq/rabbitmq-codegen/tarball/master
tar zxvf master
mv rabbitmq-rabbitmq-codegen-dd73c6f codegen
rm -rf master
autoreconf -i
./configure
make
make install
cd ../..

wget http://pecl.php.net/get/amqp-1.0.7.tgz
tar -zxvf amqp-1.0.7.tgz
cd amqp-1.0.7
/usr/local/php-5.5.18/bin/phpize
./configure --with-php-config=/usr/local/php-5.5.18/bin/php-config \
--with-amqp
make
make install
cd ..


vim /usr/local/php-5.5.18/etc/php.ini
#------------------------------------------------------------
extension = amqp.so
#------------------------------------------------------------

相关文章:

  • 2021-09-17
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2021-08-16
  • 2021-04-06
  • 2022-02-07
相关资源
相似解决方案