XCache是一款快速、稳定的php代码级缓存器,可以为高负载环境下的服务器提供一个有效的缓冲层。与它类的缓冲器有eAccelerator、APC。 本文介绍了,如果为php安装XCache^_^。 测试环境搭建 我在centos5.5下使用apache2php5搭建了一个简单的测试环境,网站根目
XCache是一款快速、稳定的php代码级缓存器,可以为高负载环境下的服务器提供一个有效的缓冲层。与它类似的缓冲器有eAccelerator、APC。
本文介绍了,如果为php安装XCache^_^。
测试环境搭建
我在centos5.5下使用apache2+php5搭建了一个简单的测试环境,网站根目录在/var/www/html 下。
查看php5当前配置
在安装xcache之前,我们应该先检查一下自己的php配置,在/var/www/html 目录下新建info.php,并写入如下代码:
?
1 |
|
?
1 2 3 |
|
在浏览器中查看phpinfo信息,http://localhost/info.php
当然现在你还看不到xcache的安装信息
如果你在配置上图的配置中看到其他的缓存器,如eAccelerator或APC,需要先删除它们:
?
1 2 3 4 5 6 |
|
开始安装XCache
由于XCache没有现成的rpm安装包,我们需要手动编译这个模块。
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
配置XCache
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
重启Apache服务器
?
1 |
|
再次查看phpinfo信息,如果看见下面两张图,恭喜配置成功

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor
