高性能PHP框架Yaf框架的安装

1、打开http://www.laruence.com/ 右边有下载的Yaf的地址

2、下载tgz包。

3、放到lnmp环境下解压。

[root@lnmp ~]# tar -tvf yaf-2.3.5.tgz 

4、安装

[root@lnmp ~]# cd yaf-2.3.5
[root@lnmp yaf-2.3.5]# phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
[root@lnmp yaf-2.3.5]# ./configure --with-php-config=/usr/local/php/bin/php-config
[root@lnmp yaf-2.3.5]# make
[root@lnmp yaf-2.3.5]# make install
Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/
5、配置

[root@lnmp ~]# vim /usr/local/php/etc/php.ini

加上

extension=yaf.so

6、重启php-fpm

[root@lnmp ~]# service php-fpm restart    #用其他方式重启也行
Gracefully shutting down php-fpm . done
Starting php-fpm  done
[root@lnmp ~]# 


7、make test

查看存在的问题,里面需要开启一些php 禁用的函数


=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   47
---------------------------------------------------------------------


Number of tests :   87                86
Tests skipped   :    1 (  1.1%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :   86 ( 98.9%) (100.0%)
---------------------------------------------------------------------
Time taken      :    7 seconds
=====================================================================


This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: s  
Please send /home/wwwroot/www.yafdemo.com/git/php_test_results_20151122_1904.txt to qa-reports@lists.php.net manually, thank you.
[root@www git]# less /home/wwwroot/www.yafdemo.com/git/php_test_results_20151122_1904.txt
[root@www git]# 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值