php5.5以下怎么开启opcache

发布:2013-09-11 13:24   点击491次   评论:0

http://zhidao.baidu.com/link?url=fokj80Ml9hKPuEEJBkx4WSIzJO_SaxtCfdqm87TeU1v4zla3Ai5kvuYzinpDWiZfkE3Qfe4379rayFlB_A2tXa
php5.5以下怎么开启opcache

打开php.ini文件, 在最底部增加如下配置:

[opcache]
zend_extension = “D:\xampp\php\ext\php_opcache.dll”
opcache.memory_consumption=1024
opcache.optimization_level=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4096
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable=1

opcache.enable_cli=1


phpinfo()结果:
PHP Version 5.5.3
Server API Built-in HTTP server

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

关于 GitHub 导航 部门 反馈

提示:`/home.php`入口数据仅为演示功能,不构成任何交易凭证,也不承担相关风险和责任!

Copyright © 2011-2018 xxxxx.com All rights reserved.

Run:3.274/30.571(ms); 7(sql)/2.876(MB); comm:news/detail; Upd:2025-01-11 07:52:28