在 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]
(編輯:雷林鵬 來源:網絡 侵刪)