54

php开启opcache加速-学习一点进步一点

 5 years ago
source link: http://blog.51cto.com/laodou/2144704
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
先看一下LNMP架构我们知道很多php项目都会用到上述架构,静态页面走nginx,动态请求传给后端php,php解析后传给客户端那php是如何解析代码的呢?下面是php的原理图当Nginx将CGI请求发送给这个socket(这个socket可以是文件也可以是ipsocket)的时候,通过FastCGI接口,wrapper接收到请求,然后派生出一个新的线程,这个线程调用解释器或者外部程序处理脚本并读

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK