php7.2打开opcache
/usr/local/php/etc/php.ini
[opcache]
zend_extension=opcache
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.save_comments=0
opcache.huge_code_pages=1
opcache.file_cache=/dev/shm/opcache/
service php-fpm restart
service nginx restart