Home Backend Development PHP Tutorial Manual 12 - Install php accelerator Zend OPcache_PHP tutorial

Manual 12 - Install php accelerator Zend OPcache_PHP tutorial

Jul 13, 2016 am 10:35 AM
- opcache zend

php 5.4

wget http://pecl.php.net/get/zendopcache-7.0.2.tgz
tar xzf zendopcache-7.0.2.tgz
cd zendopcache-7.0.2
phpize
./configure
make
make install
Copy after login



PHP5.5 is already built-in, just configure it directly
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/opcache.so
;上面zend_extension路径为opcache.so的路径
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
Copy after login


/usr/local/php/sbin/php-fpm //Start

You can check whether it takes effect through phpinfo. The picture below is my configured PHP extension:


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/742403.htmlTechArticlephp 5.4 wget http://pecl.php.net/get/zendopcache-7.0.2.tgztar xzf zendopcache -7.0.2.tgzcd zendopcache-7.0.2phpize./configuremakemake install php5.5 is already built-in, just configure it directly...
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

An article explaining the principle and use of PHP opcache in detail An article explaining the principle and use of PHP opcache in detail Mar 22, 2023 pm 04:18 PM

This article brings you relevant knowledge about PHP opcache. It mainly talks about how to understand the OPCache function and how to use it. Friends who are interested can take a look below. I hope it will be helpful to everyone.

How to install opcache in centos php How to install opcache in centos php Jan 19, 2023 am 09:50 AM

How to install opcache in centos php: 1. Execute the "yum list php73* | grep opcache" command; 2. Install opcache through "yum install php73-php-opcache.x86_64"; 3. Use "find / -name opcache.so" Just find the location of "opcache.so" and move it to php's extension directory.

Optimization tips for OPcache configuration in PHP application performance optimization Optimization tips for OPcache configuration in PHP application performance optimization May 01, 2024 am 09:03 AM

By optimizing OPcache configuration, PHP application performance can be improved. Optimization includes: setting a reasonable opcache.memory_consumption size, increasing the value of opcache.max_accelerated_files, enabling opcache.revalidate_freq, disabling opcache.optimization_level

How to use ACL (Access Control List) for permission control in Zend Framework How to use ACL (Access Control List) for permission control in Zend Framework Jul 29, 2023 am 09:24 AM

How to use ACL (AccessControlList) for permission control in Zend Framework Introduction: In a web application, permission control is a crucial function. It ensures that users can only access the pages and features they are authorized to access and prevents unauthorized access. The Zend framework provides a convenient way to implement permission control, using the ACL (AccessControlList) component. This article will introduce how to use ACL in Zend Framework

PHP Implementation Framework: Zend Framework Getting Started Tutorial PHP Implementation Framework: Zend Framework Getting Started Tutorial Jun 19, 2023 am 08:09 AM

PHP implementation framework: ZendFramework introductory tutorial ZendFramework is an open source website framework developed by PHP and is currently maintained by ZendTechnologies. ZendFramework adopts the MVC design pattern and provides a series of reusable code libraries to serve the implementation of Web2.0 applications and Web Serve. ZendFramework is very popular and respected by PHP developers and has a wide range of

Analysis of the underlying development principles of PHP7: In-depth understanding of the working principle of OPcache Analysis of the underlying development principles of PHP7: In-depth understanding of the working principle of OPcache Sep 09, 2023 am 08:16 AM

Analysis of the underlying development principles of PHP7: In-depth understanding of the working principle of OPcache. In recent years, with the development of the Internet, the number of web page visits has continued to increase, and the performance requirements for the website have also increased. As a commonly used server-side programming language, PHP has attracted much attention in dealing with performance issues under high load conditions. The release of the PHP7 version has improved performance to a new level, mainly due to one of the new features: OPcache. OPcache is an intermediate cache introduced in PHP7 to speed up PH

PHP 7 performance optimization tips: How to use opcache to speed up script execution PHP 7 performance optimization tips: How to use opcache to speed up script execution Jul 29, 2023 pm 09:36 PM

PHP7 performance optimization tips: How to use opcache to speed up script execution Introduction: PHP is a widely used server-side scripting language. Its flexibility and ease of use make it the first choice for building dynamic web pages and applications. However, PHP's performance can become a bottleneck when handling a large number of concurrent requests. In order to solve this problem, we can use opcache to speed up the execution of scripts, thus improving the performance of PHP. What is opcache? Opcache is a built-in part of PHP

PHP does not recognize ZendOptimizer, how to solve it? PHP does not recognize ZendOptimizer, how to solve it? Mar 19, 2024 pm 01:09 PM

PHP does not recognize ZendOptimizer, how to solve it? In PHP development, sometimes you may encounter a situation where PHP cannot recognize ZendOptimizer, which will cause some PHP codes to not run properly. In this case, we need to take some measures to solve the problem. Some possible workarounds are described below, along with specific code examples. 1. Confirm whether ZendOptimizer is installed correctly: First, we need to confirm that ZendOptimizer

See all articles