高性能PHP框架Yaf框架的安装
2015-12-21 14:21
691 查看
1、打开http://www.laruence.com/ 右边有下载的Yaf的地址
2、下载tgz包。
3、放到lnmp环境下解压。
[root@lnmp ~]# tar -tvf yaf-2.3.5.tgz
4、安装
[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]#
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]#
相关文章推荐
- phpstorm安装
- php session 读写锁
- Live555通过SDP文本信息实现对RTP的接收
- yii的部署
- c/s程序版本自动升级的问题,如何判断client端版本号是否最新,然后从指定ftp服务器down
- symfony2项目访问app_dev.php不显示debug工具栏的问题
- PHP草根论之设计模式-訪问者模式
- php 添加curl 模块
- PHP学习日记
- PHP5.3的编译扩展
- YII配置mysql读写分离
- 高负载PHP调优
- Jenkins进阶系列之——06FTP publisher plugin插件下载(支持绝对路径)
- Jenkins进阶系列之——05FTP publisher plugin插件
- Jenkins进阶系列之——04Publish Over FTP Plugin插件
- zend studio 13 curl 请求本机地址 无法跟踪调试的问题解决方案。。。(chrome等浏览器调试原理相同)
- 变量在 PHP7 内部的实现(二)
- YII2 rest 风格接口
- 变量在 PHP7 内部的实现(一)
- 定时自动启动任务crontab命令,及cannot open ?php: No such file错误