tar -zxvf yaf-3.0.5
php
cd yaf-3.0.5
your/phpize/path
nginx
phpize
的路徑,能夠find / -name 'phpize'
./configure --with-php-config=your/php-config/path
git
php-config
路徑,同上make
make install
vim your/php.ini/path
github
[Yaf]
extension=yaf.so
yaf.environ="product"
systemctl start php-fpm.service
vim
php-fpm
if (!-e $request_filename) { rewrite ^/(.*) /index.php?$1 last; }
wget https://github.com/laruence/yaf/archive/master.zip
unzip master.zip
cd yaf-master
cd tools/cg
php-fpm
yaf_cg
,能夠經過yaf_cg
生成一個最簡單的yaf項目php yaf_cg project_name
cd output
code