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