下载源码包,解压之后进入(以安装pcntl扩展为例)
/home/php-5.6.30/ext/pcntl
phpize(找到自己服务器的phpize目录位置)
/qdb/server/php-5.6.30/bin/phpize
编译准备 (找到自己服务器的php-config目录位置)
./configure —with-php-config=/qdb/server/php-5.6.30/bin/php-config
编译 安装
make & make install
重启php-fpm
/etc/init.d/php-fpm restart
