基于PHP的性能优化tips

  • A+
所属分类:Service

1:开启opacache[php.ini]

2:开启memcache[php.ini]编译Memcache (原生的Memcache 3.08版无法在PHP7下编译,故选用Github的pecl-memcache分支版本。)

3:PHP7 开启Opcache file cache[参考鸟哥博客][php.ini]

4:Hugepage

参考文档:
1:http://www.laruence.com/2015/12/04/3086.html
2:https://www.t4x.org/environment/opcache-xcache-memcache/

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: