pcntl 擴展包通常就在php源碼的ext目錄下.
cd ./ext/pcntl /opt/server/php5/bin/phpize ./configure \ --with-php-config=/opt/server/php5/bin/php-config
make && make install 編輯php.ini文件,以配置這個擴展 extension_dir=/opt/server/php5/lib/php/extensions/no-debug-non-zts-20121212/ extension=pcntl.so