##查看原来php版本
[root@frg ~]# /usr/local/php/bin/php -v
PHP 5.2.8 (cli) (built: Oct 22 2010 00:43:36)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
wget -c http://museum.php.net/php5/php-5.2.8.tar.bz2
tar xvf php-5.2.8.tar.bz2
cd php-5.2.8/ext/pcntl/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
/etc/init.d/php-fpm restart
vim /usr/local/php/lib/php.ini
###add
extension=pcntl.so
/etc/init.d/php-fpm restar
##check
/usr/local/php/bin/php -m | grep pc
但昨天安装的 好像 不成功呀
错误日志
[12-Mar-2012 16:09:24] PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) ‘pcntl.so’ in Unknown on line 0 哪位哥帮忙一下