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

推荐订阅源

Google Online Security Blog
Google Online Security Blog
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
V
V2EX
雷峰网
雷峰网
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
F
Full Disclosure
Y
Y Combinator Blog
V
V2EX - 技术
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
SecWiki News
SecWiki News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
量子位
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AWS News Blog
AWS News Blog
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
K
Kaspersky official blog
B
Blog
A
Arctic Wolf
Hacker News: Ask HN
Hacker News: Ask HN
L
LangChain Blog
T
Tor Project blog
P
Privacy & Cybersecurity Law Blog
Recent Announcements
Recent Announcements
宝玉的分享
宝玉的分享
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
D
Docker
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy International News Feed
Simon Willison's Weblog
Simon Willison's Weblog

博客园 - 天天天蓝

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