PHP7 达到最高性能的建议

1.Opcache
在php.ini配置文件中加入:

zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1″
2.使用新的编译器
推荐GCC 4.8以上,因为只有GCC 4.8以上PHP才会开启Global Register for opline and execute_data支持,这个会带来5%左右的性能提升

猜你喜欢

转载自blog.csdn.net/zhuzhu131654/article/details/81448711