php extension module opcache installation tutorial

php extension module opcache installation tutorial
later PHP5.5.0 version comes Opcache accelerator, but the undergrowth had enabled by default.
So when we want to compile PHP to enable the PHP accelerator should add parameters: -enable-opcache. Has been compiled for the user PHP5.5.0 later but they did not enable the accelerator can be installed as add modules like PHP compiler source code php source packages added in the ext

Finally opcache.so added to php.ini method
the zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
opcache.memory_consumption = 64
opcache.interned_strings_buffer =. 8
opcache. = 4000 max_accelerated_files
opcache.force_restart_timeout = 180 [
opcache.revalidate_freq = 60
opcache.fast_shutdown. 1 =
opcache.enable_cli. 1 =

View phpinfo () Cache hits the cache hit rate is important that the higher the bid the higher the utilization efficiency of the cache

Modified opcache.revalidate_freq = 2 will check a file within a certain time, set the time period examined here, the default is 2 seconds if you do not locate the update is to use the cache hit rate would Cache hits +1 if the update will be read PHP to take on the hard disk

 

Guess you like

Origin www.cnblogs.com/newmiracle/p/11872625.html