phalcon
来源:
yum install php-devel php-mysql gcc libtool pcre-develyum install wget git cd /wdzj/source git clone --depth=1 git://github.com/phalcon/cphalcon.gitcd cphalcon/build./install 添加扩展到php.ini文件:#extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/phalcon.so cp /wdzj/lnmp/php5.6.11/lib/php.ini /wdzj/lnmp/php5.6.11/lib/php.ini.`date +%F` echo "extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/phalcon.so" >>/wdzj/lnmp/php5.6.11/lib/php.ini 重启php /etc/init.d/php-fpm restart php -m |grep phalcon ##如果有就安装成功
Xhprof:
来源:
wget http://pecl.php.net/get/xhprof-0.9.4.tgztar -zxvf xhprof-0.9.4.tgz cd xhprof-0.9.4cd extension/phpize./configuremakesudo make install修改php.ini# cp /wdzj/lnmp/php5.6.11/lib/php.ini /wdzj/lnmp/php5.6.11/lib/php.ini.`date +%F`# [xhprof]# extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so# xhprof.output_dir=/tmp cp /wdzj/lnmp/php5.6.11/lib/php.ini /wdzj/lnmp/php5.6.11/lib/php.ini.`date +%F` echo "[xhprof]" >>/wdzj/lnmp/php5.6.11/lib/php.ini echo "/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so" >>/wdzj/lnmp/php5.6.11/lib/php.ini echo "xhprof.output_dir=/tmp" >>/wdzj/lnmp/php5.6.11/lib/php.ini 重启php /etc/init.d/php-fpm restart php -m |grep xhprof ##如果有就安装成功
安装 amqp
wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gzyum install automake -ytar xf rabbitmq-c-0.8.0.tar.gzcd rabbitmq-c-0.8.0autoreconf -i./configure --prefix=/wdzj/lnmp/lib/rabbitmqmakemake installtar xf amqp-1.7.1.tgzcd amqp-1.7.1./configure --with-php-config=/wdzj/lnmp/php7.0.12/bin/php-config --with-amqp --with-librabbitmq-dir=/wdzj/lnmp/lib/rabbitmqmake make install
升级redis插件
cd /wdzj/source/wget http://pecl.php.net/get/redis-2.2.8.tgztar -xzvf redis-2.2.8.tgzcd redis-2.2.8/wdzj/lnmp/php5.6.11/bin/phpize./configure --with-php-config=/wdzj/lnmp/php5.6.11/bin/php-configmakemake installll /wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226//etc/init.d/php-fpm reloadphp -m |grep redis