车皮 发表于 2018-12-21 09:17:08

Xcache加速php

  当搭建好LNMP后,为了让它提供更好的服务,可以做进一步的优化。
  环境:Red Hat Enterprise Linux 5
  LNMP

  工具:xcache-2.0.1.tar.gz
  安装步骤:
http://blog.运维网.com/attachment/201309/200833346.png
http://blog.运维网.com/attachment/201309/200836793.png
http://blog.运维网.com/attachment/201309/200838921.png
http://blog.运维网.com/attachment/201309/201218634.png
  环境参数设置完成后,执行:

  make&& make insatll 进行安装。
http://blog.运维网.com/attachment/201309/202249221.png
http://blog.运维网.com/attachment/201309/202251110.png
http://blog.运维网.com/attachment/201309/211036808.png
  因为php是和fastcgi相结合,所以需要重启php-fgm服务。

http://blog.运维网.com/attachment/201309/210117664.png
  然后在php主页面中调用phpinfo()函数,查看是否加载xcache。
http://blog.运维网.com/attachment/201309/211143461.png
  Xcache是可以进行网页来管理:
  实现xcache的管理是通过它自带的一个目录admin来进行管理,将次目录拷贝到站点目录中,通过物理目录来进行管理。

http://blog.运维网.com/attachment/201309/212530593.png
http://blog.运维网.com/attachment/201309/212532183.png
  因为这是一个管理的界面,所以需要通过一些必要的认证,才能保证站点的安全性。在xcache的配置文件xcache.ini中添加用户和密码,注意这个密码是需要经过md5加密的。

http://blog.运维网.com/attachment/201309/214140374.png
http://blog.运维网.com/attachment/201309/214142817.png
http://blog.运维网.com/attachment/201309/214145460.png
通过http://服务器IP地址/admin来访问xcache管理页面。

http://blog.运维网.com/attachment/201309/214147635.png
http://blog.运维网.com/attachment/201309/214345551.png
  




页: [1]
查看完整版本: Xcache加速php