PATH=$PATH:/phpstudy/server/php/bin
tar zxvf yaf-2.3.3.tgz
cd yaf-2.3.3
phpize
./configure
make
tar zxvf yaf-2.3.3.tgz
cd yaf-2.3.3
phpize
./configure
make
make install
进入源码目录php-yaf-src/tools/cg/,执行 ./yaf_cg sample
然后将生成的demo拷贝到www目录下