zhanhailiang 日期:2015-02-28
Installation and Configuration
download php-5.6.6.tar.gz
[[email protected]~/wade/git/billfeller.github.io/code]# wget wget http:/ /cn2.php.net/distributions/php-5.6.6.tar.gz
Opcache
./configure--prefix=/usr/local/php-5.6.6--with-pear--with-iconv=/usr/local/ --enable-mysqlnd--with-mysql--with-mysqli--with-openssl--with-libxml-dir--with-curl--with-pdo-mysql-- Disable-fileinfo--enable-opcache--enable-soap--enable-sockets--enable-fpm--enable-mysqlnd--with-mcrypt-- Enable-mbstring--enable-debug--enable-maintainer-ztsmake & & make install
Configuration php.ini:
Zend_extension=opcache.so[opcache]opcache.memory_consumption=128opcache.interned_strings_buffer=8opcache.max_ Accelerated_files=4000opcache.revalidate_freq=60opcache.fast_shutdown=1opcache.enable_cli=1
Test:
[Email protected]~/wade/git/billfeller.github.io/code]#/usr/local/php-5.6.6/bin/php-m[zend Modules]Zend OPcache
Read more
- Opcache Installation
- Performance in front-end development that's something. (iii) PHP opcode cache
php5.5+ Integrated Opcache