
cd /root/php-7.2.8/ext/pcntl #这里以我的为例
/usr/local/php/bin/phpize #执行该文件,会在上面目录中产生configure 信息./configure --with-php-config=/usr/local/php/bin/php-configmake && make install #完成后会给出以下信息
vi /usr/local/php/etc/php.ini
extension= /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/pcntl.so
#任意位置加入以上代码,重启php-fpm,探针测试如下:
