PHP 5.5+版本以上的,可以使用PHP自帶的opcache開啟性能加速(預設是關閉的)。對于PHP 5.5以下版本的,需要使用APC加速,這裡不說明,可以自行上網搜尋PHP APC加速的方法。
1、打開php.ini檔案
2、找到:[opcache],設定為:
<a></a>
3、重新開機apache即可。
配置完成後,可以使用如下代碼查詢opcache:
通路頁面得到如下界面:
以下是opcache的配置說明:
使用 OpCache 提升 PHP 5.5+ 程式性能
<a href="https://phphub.org/topics/301" target="_blank">https://phphub.org/topics/301</a>
php opcache 配置
<a href="https://blog.hackroad.com/operations-engineer/windows_server/9311.html" target="_blank">https://blog.hackroad.com/operations-engineer/windows_server/9311.html</a>
本文轉自黃聰部落格園部落格,原文連結:http://www.cnblogs.com/huangcong/p/5218295.html,如需轉載請自行聯系原作者