Manual 12 - Install php accelerator Zend OPcache_PHP tutorial

WBOY
Release: 2016-07-13 10:35:44
Original
1109 people have browsed it

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...
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!