2020年8月

wget https://github.com/alanxz/rabbitmq-c/archive/v0.10.0.tar.gz -O rabbitmq-c.v0.10.0.tar.gz
tar -xvf rabbitmq-c.v0.10.0.tar.gz
cd rabbitmq-c-0.10.0/
yum -y install cmake
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/rabbitmq-c-0.10.0
make
make install

cp -R /usr/local/rabbitmq-c-0.10.0/lib64/ /usr/local/rabbitmq-c-0.10.0/lib

wget http://pecl.php.net/get/amqp-1.10.2.tgz
tar xvf amqp-1.10.2.tgz
cd amqp-1.10.2/
/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.10.0
make
make install