惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Vercel News
Vercel News
月光博客
月光博客
S
SegmentFault 最新的问题
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
小众软件
小众软件
WordPress大学
WordPress大学
G
Google Developers Blog
Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 【当耐特】
I
InfoQ

博客园 - 天天天蓝

JDK 国内源 jenkins spring cloud springboot spring 文章索引 java文章索引 小程序 AWAIT ASYNC ES6转ES5解决 centos vsftpd centos nginx linux 修改配色 mac 常用技巧 ryzen nvidia hackintosh mysql count 主键之坑 git命令 MYSQL 注释 yaf twig配置 yaf nginx 设置 ubuntu 16 阿里云 vsftpd win10下 homestead 安装
1.YAF 的安装
天天天蓝 · 2017-04-03 · via 博客园 - 天天天蓝

1.环境  

   UBUNTU16.04 PHP7.0

2.安装

  2.1先安装PHPIZE

 sudo apt install php7.0-dev

  2.2

   A;下载源码包  并解压 安装

sudo wget http://pecl.php.net/get/yaf-3.0.4.tgz

tar zxvf  yaf-3.0.4.tgz

./configure
make
sudo make install

  B:或者  pecl install yaf

2.3PHP中开启扩展

  A:/etc/php/7.0/mods-available中新建一个INI文件  比如yaf.ini  内容 extension=yaf.so  可以拷贝一个直接改吧

B:Fpm配置文件中建立YAF.INI的软链接   

sudo ln -s ../../mods-available/yaf.ini 15-yaf.ini

sudo service php7.0-fpm  restart 然后phpinfo() 可以查看到YAF已经安装成功了

如果想在CLI中使用 那么 需要在CLI的配置文件中也建立一个软链接

cd /etc/php/7.0/cli/conf.d

sudo ln -s ../../mods-available/yaf.ini 15-yaf.ini

php -m