1.進入pcntl拓展路徑 cd /usr/local/php-7.3.29/ext/pcntl/ 執行 make clean
2.運行phpize,執行 /usr/local/php/bin/phpize
3.查詢php-config路徑,執行命令 which php-config 並運行 ./configure --with-php-config=/usr/local/php/bin/php-config --with-pcntl=/usr
4.運行命令
make &&make install
5.之后再php.ini中加入 extension=pcntl.so 后重啟php php-fpm restart