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]#