One - One Code All

Blog Content

yaf 安装,phpize

PHP Yaf   2012-09-19 21:09:05

Yaf的安装。


  1. 选择版本,官网下载,http://pecl.php.net/package/yaf,yaf-2.2.2.tgz

  2. 下载解压:tar  zxvf yaf-2.2.tgz

  3. 检查PHP环境,yum install php-devel , 执行 /usr/bin/phpize 生成 /usr/bin/php-config

  4. 执行: ./configure --with-php-config=/usr/bin/php-config   

  5. 执行: make && make install

  6. 把扩展加入php.ini  : vi /etc/php.ini , extension = yaf.so          

  7. 重启web服务,检查是否生效。                      




下一篇:Yaf_Http_Request类常用方法,获取参数等

The minute you think of giving up, think of the reason why you held on so long.