Brother Bird said in the blog, improve PHP 7 performance of a few tips, the first is to open Opache, quoting the original:
Remember to enable Zend Opcache, because PHP7 even if the Opcache speed is not enabled than PHP-5.6 enabled Opcache faster, so before the test period occurred someone has not enabled the opcache of things
My Aliyun server is through a call Remi CentOS source to provide PHP 7, the default does not install Opcache, with Yum list yum70* command Search, sure enough, so install down:
Yum Install php70-php-opcache.x86_64
Then restart PHP-FPM and use the service php70-php-fpm restart command. (Different systems and environments are installed and opened according to their own situation Opache)
Opcache
Create a new PHP file, use the Phpinfo () function to display php.ini information, if you can find the Opcache entry, the description was successfully enabled. Install and enable PHP 7, is to give PHP 7 plus a wing!