PHP5.5 has built the ZendOPcache cache system, which is also available in 5.2-5.4. After testing, the acceleration performance in php5.4 is obvious, and the effect is better than that of 5.2 + ea. Here we recommend the installation and compilation steps:
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: in php. add zend_extension =/in ini /... full path... /opcache. so the following section is the officially recommended configuration parameter, which can improve the performance. we recommend that you use opcache. memory_consumption = 128opcache. interned_strings_buffer = 8opcache. max_accelerated_files = 4000opcache. revalidate_freq = 60opcache. fast_shutdown = 1opcache. enable_cli = 1 another: in PHP5.5, you only need to add the -- enable-opcache parameter during compilation. we recommend that you use the Zend OPcache control panel:
Https://gist.github.com/ck-on/4959032