WDlinux官方论坛's Archiver

sg199 发表于 2013-8-28 23:47

最新XCache安装教程

[code]
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
[/code]

编译完成后我们在php.ini里面插入配置。插入到;eaccelerator和;ionCube的中间

[code][xcache-common]
extension = xcache.so

[xcache]
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]
xcache.coverager = Off
xcache.coverager_autostart = On
xcache.coveragedump_directory = ""

[/code]

sg199 发表于 2013-8-28 23:48

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=27607&ptid=7008]1#[/url] [i]sg199[/i] [/b]

我的试验成功,分享下,如果其他人成功就好,不成功误怪

admin 发表于 2013-8-29 10:57

很好

jiahuaiu 发表于 2013-9-4 17:07

eaccelerator 跟xcache同时存在,不会冲突吗?

moechoo 发表于 2013-9-7 13:41

不成功。。。。。

dmyz3214382 发表于 2013-9-25 14:44

[quote]回复  sg199

我的试验成功,分享下,如果其他人成功就好,不成功误怪
[size=2][color=#999999]sg199 发表于 2013-8-28 23:48[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=27608&ptid=7008][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]
[root@i-488-26737-VM xcache-3.0.3]# phpize:/www/wdlinux/php/bin/phpize
-bash: phpize:/www/wdlinux/php/bin/phpize: No such file or directory
[root@i-488-26737-VM xcache-3.0.3]# ./configure -with-php-config=/www/wdlinux/php/bin/php-config -enable-xcache -enable-xcache-coverager -enable-inline-optimization -disable-debug
-bash: ./configure: No such file or directory
[root@i-488-26737-VM xcache-3.0.3]# make
make: *** No targets specified and no makefile found.  Stop.

admin 发表于 2013-9-25 15:11

/www/wdlinux/php/bin/phpize

alwayszmz 发表于 2013-12-26 23:23

请问楼主,插入到哪个文件夹里的php.ini中啊???我按安装路径插入到apache php-5.2.17中的php.ini中,结果phpinfo没有显示xcache的信息啊,论坛也是显示PHP不支持!!!急死了。。。

alwayszmz 发表于 2013-12-27 11:12

重启服务没管用,意外重启了下服务器,结果就正常了。。。

Damon 发表于 2013-12-27 20:57

进来看下 支持下楼猪

fengye191 发表于 2014-6-7 13:53

去掉zend就可以了

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.