PHP扩展AMQP安装完整文档v1.0
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
#------------------------------------------------------------