Yaf安装与配置并初始化项目 Linux环境

安装

Pecl下载Yaf

tar zxvf yaf-3.0.8.tgz 解压

$ phpize
$ ./configure --with-php-config=/path/to/php-config
$ make && make install

最后到php.ini添加 

[Yaf]
extension=yaf.so
yaf.environ="product"

至此,安装完毕。

初始化项目

将源码Git上的主分支下载到项目中的tmp临时文件中,在tmp/yaf-master/tools/cg中执行

./yaf_cg 项目名

output目录中就会生成一个最精简的Yaf项目

最后就将生成的项目 copy到项目目录下

原文地址:https://www.cnblogs.com/greycdoer0/p/10707041.html