ホームページ  >  記事  >  バックエンド開発  >  为PHP5.4开启Zend OPCode缓存_PHP

为PHP5.4开启Zend OPCode缓存_PHP

WBOY
WBOYオリジナル
2016-06-01 11:06:33652ブラウズ

编译步骤:

 

代码如下:


git clone git://github.com/zend-dev/ZendOptimizerPlus.git
cd ZendOptimizerPlus
$PHP_DIR/bin/phpize
./configure \
--with-php-config=$PHP_DIR/bin/php-config
make && make install

 

配置步骤:在 php.ini 内增加zend_extension=/...full path.../opcache.so下面这段是官方推荐的配置参数,可以更加提升性能,建议使用:opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_accelerated_files=4000opcache.revalidate_freq=60opcache.fast_shutdown=1opcache.enable_cli=1另:PHP5.5下只需要编译时增加 --enable-opcache 参数即可推荐使用:Zend OPcache 控制面板:
https://gist.github.com/ck-on/4959032

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。