Home > Backend Development > PHP Tutorial > Introduction to PHP Opcache installation and configuration methods_PHP tutorial

Introduction to PHP Opcache installation and configuration methods_PHP tutorial

WBOY
Release: 2016-07-13 09:52:40
Original
785 people have browsed it

Introduction to the installation and configuration method of PHP Opcache

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1007642.htmlTechArticleIntroduction to the installation and configuration method of PHP Opcache. This article is for advanced versions such as PHP5.5. You need to add --enable when compiling. After the compilation and installation of -opcache parameters are completed, we start to configure Opcache. The code is as follows...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template