Home  >  Article  >  Backend Development  >  Enable Zend OPCode caching for PHP5.4, php5.4opcode_PHP tutorial

Enable Zend OPCode caching for PHP5.4, php5.4opcode_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:10:40677browse

Enable Zend OPCode cache for PHP5.4, php5.4opcode

Compilation steps:

Copy code The code is as follows:

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

Configuration steps: Add zend_extension=/...full path.../opcache.so in php.ini. The following paragraph is the officially recommended configuration parameter, which can further improve performance. It is recommended to use: opcache.memory_consumption=128opcache .interned_strings_buffer=8opcache.max_accelerated_files=4000opcache.revalidate_freq=60opcache.fast_shutdown=1opcache.enable_cli=1 Also: Under PHP5.5, you only need to add the --enable-opcache parameter when compiling. Recommended use: Zend OPcache control panel:
https://gist.github.com/ck-on/4959032

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/933602.htmlTechArticleEnable Zend OPCode cache for PHP5.4, php5.4opcode compilation steps: Copy the code as follows: git clone git: //github.com/zend-dev/ZendOptimizerPlus.git cd ZendOptimizerPlus $PHP_DIR/b...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn