最新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] [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=27607&ptid=7008]1#[/url] [i]sg199[/i] [/b]
我的试验成功,分享下,如果其他人成功就好,不成功误怪 很好 eaccelerator 跟xcache同时存在,不会冲突吗? 不成功。。。。。 [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. /www/wdlinux/php/bin/phpize 请问楼主,插入到哪个文件夹里的php.ini中啊???我按安装路径插入到apache php-5.2.17中的php.ini中,结果phpinfo没有显示xcache的信息啊,论坛也是显示PHP不支持!!!急死了。。。 重启服务没管用,意外重启了下服务器,结果就正常了。。。 进来看下 支持下楼猪 去掉zend就可以了
页:
[1]