Yaf安装和配置

yaf 安装我看了鸟哥的github  https://github.com/laruence/yaf

参考博客有:http://www.tuicool.com/articles/ee6beq

 

下载:  git clone https://github.com/laruence/yaf.git

确定系统已经安装了gcc、gcc-c++、make、automake、autoconf等依赖库

编译安装的过程

/data/klj/php-5.6.14/bin/phpize 
./configure --with-php-config=/data/klj/php-5.6.14/bin/php-config 
 make && make install

修改php配置文件

vi /usr/local/php/etc/php.ini

重启php

yaf 已经安装完毕

 

 

2 生成程序代码

进入刚才的git目录

cd  /data/source/yaf/tools/cg

生成程序

php yaf_cg yaf

将代码移动到nginx项目目录

mv -f output/yaf /data/www/html/yaf

 

posted @ 2016-03-22 21:46  klj123wan  阅读(221)  评论(0编辑  收藏  举报