空气中的鱼儿 发表于 2015-4-13 13:49:02

WDCP安装XCache缓存教程

WDCP安装XCache缓存教程
wget http://xcache.lighttpd.net/pub/Releases/3.0.3/xcache-3.0.3.tar.gz
tar -zxvf xcache-3.0.3.tar.gz
cd xcache-3.0.3
/www/wdlinux/php/bin/phpize
./configure -with-php-config=/www/wdlinux/php/bin/php-config -enable-xcache -enable-xcache-coverager -enable-inline-optimization -disable-debug
make
make install
编译完成后我们在php.ini里面插入配置。插入到;eaccelerator和;ionCube的中间

extension = xcache.so

xcache.shm_scheme = "mmap"
xcache.size = 160M
xcache.count = 1
xcache.slots = 8K
xcache.ttl = 0
xcache.gc_interval = 0
xcache.var_size = 4M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
xcache.var_namespace_mode = 0
xcache.var_namespace = ""
xcache.readonly_protection = Off
xcache.mmap_path = "/tmp/xcache"
xcache.coredump_directory = ""
xcache.coredump_type = 0
xcache.disable_on_crash = Off
xcache.experimental = Off
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off

xcache.coverager = Off
xcache.coverager_autostart = On
xcache.coveragedump_directory = ""
一般插入php.ini中 zend之上
在一下代码上面插入然后重启服务器

; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =
; Local Variables:
; tab-width: 4
; End:

页: [1]
查看完整版本: WDCP安装XCache缓存教程