在 Linux 系统下安装YAFphp
要求:git
PHP 5.2+github
下载Yaf的最新版本, 解压缩之后, 进入Yaf的源码目录, 依次执行(其中PHP_BIN是PHP的bin目录):网络
最新版YAF下载地址:源码
https://github.com/laruence/php-yafit
编译Yaf:编译
$PHP_BIN/phpize下载
./configure --with-php-config=$PHP_BIN/php-configim
makeimg
make install
而后在php.ini中载入yaf.so, 重启PHP.
安装成功后,能够经过phpinfo查看YAF模块:
文章转载自 [http://www.php230.com]
(编辑:雷林鹏 来源:网络 侵删)