Home  >  Article  >  Backend Development  >  Introduction to the installation and configuration method of PHP Opcache, phpopcache_PHP tutorial

Introduction to the installation and configuration method of PHP Opcache, phpopcache_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:52:33933browse

Introduction to the installation and configuration method of PHP Opcache, phpopcache

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


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1008007.htmlTechArticleIntroduction to the installation and configuration method of PHP Opcache, phpopcache This article is for advanced versions such as PHP5.5. You need to add - when compiling After the -enable-opcache parameter is compiled and installed, we start to configure Opcach...
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