phpstudy安装pcntl扩展


下载wget http://hk1.php.net/get/php-5.5.10.tar.gz/from/this/mirror

解压tar -zxvf mirror

接着进入 cd php-5.5.10/ext/pcntl/

四、接着运行 /phpstudy/server/php/bin/phpize

 

五、执行./configure --with-php-config=PHP配置文件路径  

 

 ./configure --with-php-config=/phpstudy/server/php/bin/php-config

 

六、编译、安装  make && make install  如果/ext/pcntl/modules/pcntl.so 生成了,编译成功  

 

七、将php加载的PHP.INI里面增加扩展  echo "extension=pcntl.so" >> /etc/php.in

 

:如果没有看到下图的pcntl界面  进入配置文件指明pcntl完整路径/phpstudy/server/php/etc/php.ini  (我的pcntl完整路径如下) 加上下方的两个

 

八、 phpstudy restart

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM