安装php扩展:

yum -y install libuuid-devel uuid-devel re2c

安装zmq:
tar xf zeromq-2.1.10.tar.gz
cd zeromq-2.1.10
./configure --prefix=/minunix/zmq
make && make install

tar xf zmq-1.1.2.tgz
/minunix/php/bin/phpize
./configure --with-zmq=/minunix/zmq --with-php-config=/minunix/php/bin/php-config
make && make install

安装pdo_mysql
ln -sv /minunix/mysql/inculde /usr/local/include/
tar xf PDO_MYSQL-1.0.2.tgz
/minunix/php/bin/phpize
./configure --with-php-config=/minunix/php/bin/php-config --with-pdo-mysql=/minunix/mysql
make
make install
安装mongo模块:
unzip php-mongo.zip
cd php-mongo
/minunix/php/bin/phpize
./configure --with-php-config=/minunix/php/bin/php-config
make
make install
安装json_plus模块:
tar xf json_plus.tar.gz
/minunix/php/bin/phpize
./configure --with-php-config=/minunix/php/bin/php-config
make
make install

安装yaf模块:
/minunix/php/bin/pecl install yaf

vim /minunix/php/lib/php.ini
添加以下内容:
extension=zmq.so
extension=pdo_mysql.so
extension=mongo.so
extension=json_plus.so
extension=yaf.so