1、進入baiphp源碼包里擴展目錄
[root@nginx ~]# cd ./php-5.6.7/ext/pcntl/
2、用phpize生成du配置文件zhi
[root@nginx pcntl]# phpize
[root@nginx pcntl]# ./configure
3、make && make install安裝
[root@nginx no-debug-non-zts-20131226]# ls
bcmath.so gd.so opcache.a pcntl.so
calendar.so mcrypt.so opcache.so pdo_mysql.so
curl.so memcache.so openssl.so posix.so
4、php.ini配置加dao載pcntl.so擴展
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/pcntl.so