欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

為PHP5.4開啟Zend OPCode緩存

 更新時(shí)間:2014年12月26日 14:09:34   投稿:mdxy-dxy  
PHP5.5開始內(nèi)置了Zend OPcache的緩存系統(tǒng),這個(gè)系統(tǒng)在5.2-5.4下也是可以使用的。經(jīng)過測試,在php5.4下的加速性能明顯,效果比5.2+ea還要好,在此推薦安裝

編譯步驟:

復(fù)制代碼 代碼如下:

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 內(nèi)增加zend_extension=/...full path.../opcache.so下面這段是官方推薦的配置參數(shù),可以更加提升性能,建議使用:opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_accelerated_files=4000opcache.revalidate_freq=60opcache.fast_shutdown=1opcache.enable_cli=1另:PHP5.5下只需要編譯時(shí)增加 --enable-opcache 參數(shù)即可推薦使用:Zend OPcache 控制面板:
https://gist.github.com/ck-on/4959032

相關(guān)文章

最新評論