时间:2021-07-01 10:21:17 帮助过:3人阅读
wget http://pecl.php.com/get/zendopcache-7.0.2.tgz tar xzf zendopcache-7.0.2.tgz cd zendopcache-7.0.2 phpize ./configure make make install
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/opcache.so ;上面zend_extension路径为opcache.so的路径 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
可以通过phpinfo查看是否生效,下图是我的配置PHP扩展:
http://www.bkjia.com/PHPjc/742403.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/742403.htmlTechArticlephp 5.4 wget http://pecl.php.com/get/zendopcache-7.0.2.tgztar xzf zendopcache-7.0.2.tgzcd zendopcache-7.0.2phpize./configuremakemake install php5.5已经内置,直接配置就行...