# 进入PHP源码包扩展目录 cd /data/soft/PHP/PHP-5.6.3/ext/pcntl /usr/bin/PHPize ./configure --with-PHP-config=/usr/local/PHP/bin/PHP-config make make install # 增加pcntl.so 到 PHP.ini文件中 vim /usr/local/PHP/etc/PHP.ini extension = pcntl.so # 重启PHP-fpm /etc/init.d/PHP-fpm restart原文链接:https://www.f2er.com/centos/381368.html