Home > Article > Backend Development > Introduction to the installation and configuration method of PHP Opcache, phpopcache_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
Copy code 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 code The code is as follows:
service php-fpm restart
The last picture