首页 > Linux > centos6.5 php5.3.3 安装xcache3
2014
01-01

centos6.5 php5.3.3 安装xcache3

centos6.5 php5.3.3 安装xcache3 - 第1张  | 技术人生-孙强

[php]
#下载Xcache

wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.bz2

#解压缩Xcache

tar -xvf xcache-1.3.2.tar.bz2

#切换到Xcache目录

cd xcache-1.3.2

#根据php配置Xcache

phpize

#编译安装

mkdir ../xcache-build

cd ../xcache-build

~/xcache-1.3.2/configure -enable-xcache

make

make install

#新增Xcache.ini配置文件

vim /etc/php.d/xcache.ini

#增加内容:

[xcache-common[

;; install as zend extension (recommended), normally "$extension_dir/xcache.so"

zend_extension = /usr/lib/php/modules/xcache.so

;; or install as extension, make sure your extension_dir setting is correct

; extension = xcache.so

[xcache.admin]

xcache.admin.auth = On

xcache.admin.user = "mOo"

; xcache.admin.pass = md5($your_password)

xcache.admin.pass = ""

[xcache]

xcache.shm_scheme = "mmap"

xcache.size = 32M

xcache.count = 1

xcache.slots = 8K

xcache.ttl = 3600

xcache.gc_interval = 300

; Same as aboves but for variable cache

; If you don‘t know for sure that you need this,you probably don’t

xcache.var_size = 0M

xcache.var_count = 1

xcache.var_slots = 8K

xcache.var_ttl = 0

xcache.var_maxttl = 0

xcache.var_gc_interval = 300

; N/A for /dev/zero

xcache.readonly_protection = Off

xcache.mmap_path = ‘/dev/zero’

xcache.cacher = On

xcache.stat = On

###重启服务器
[/php]

最后编辑:
作者:sunny5156
喜欢技术....

留下一个回复