wget http://pecl.php.net/get/yaf-2.3.3.tgz tar zxvf yaf-2.3.3.tgz cd yaf-2.3.3 /www/wdlinux/nginx_php-5.6.30/bin/phpize ./configure --with-php-config=/www/wdlinux/nginx_php-5.6.30/bin/php-config make && make install vim /usr/local/php/etc/php.ini extension=yaf.so 下载地址 :https://github.com/laruence/yaf 1.wget https://github.com/laruence/yaf/archive/master.zip //下载 2.unzip master.zip //解压 cd yaf-master/tools/cg //进入到cg目录 ./yaf_cg yaf //执行yaf_cg 生成一个项目名叫**yaf**的项目 cd output/ //生成成功后 进入到output里面就会看到刚才生成的项目 cp -rf yaf/* /data/www/default/project/yaf/ //将生成的项目复制到自己网站目录下