Home >Backend Development >PHP Tutorial >Introduction to PHP Opcache installation and configuration methods_PHP tutorial
This article is for advanced versions such as PHP5.5. You need to add the --enable-opcache parameter when compiling
After the compilation and installation are completed, we start to configure Opcache
The code is as follows:
[Opcache]
zend_extension = opcache.so
opcache.enable=1
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 8
opcache.max_accelerated_files = 4000
opcache.revalidate_freq = 60
opcache.fast_shutdown = 1
opcache.enable_cli = 1
Restart PHP-FPM after modification
Copy the code. The code is as follows:
service php-fpm restart
The last picture