# 进入PHP源码包扩展目录cd /data/soft/php/php-5.6.3/ext/pcntl/usr/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmakemake install# 增加pcntl.so 到 php.ini文件中vim /usr/local/php/etc/php.iniextension = pcntl.so# 重启php-fpm/etc/init.d/php-fpm restart