Sitemap

2019年9月17日 礼拜二
主页 / 义务日记 / Windows Server 2008 R2 PHP5.6.18 开启 Xcache3.2.0

Windows Server 2008 R2 PHP5.6.18 开启 Xcache3.2.0

体系:windows server 2008 R2 64bit
IIS:7.5
PHP版本:PHP5.6.18
Xcache:Xcache 3.2.0
PHP下载:http://windows.php.net/download
Xcache下载:http://xcache.lighttpd.net/pub/Releases/3.2.0/
依据本人的PHP版本对应下载xcache版本,万万别下错xcache了,否则网站会提示无法加载xchache扩展

1、下载完Xcahce后解压,复制php_xcache.dll到PHP目次下的ext目次中
2、用Notepad++翻开xcache.ini,从[xcache-common]开端复制实质到php.ini中

[xcache-common]
extension = php_xcache.dll
[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "mOo"
xcache.admin.pass = "md5 encrypted password"
[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               60M
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 =    "/dev/zero"
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 = ""

注:我把解释删除了,看着眼顺,参数依据本人的状况改正
3、应用phpinfo.php翻开看看是否真的开启xcache,看到如下新闻阐明xcache开启胜利

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
    with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
    with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo

下面以xiuno bbs顺序为例,这是xiuno官网供应的,当然你也可以用上面的,参数依据本人实行状况改正

[xcache-common]
extension = php_xcache.dll
[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               20M
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count =                 1
xcache.slots =                80K
xcache.ttl   =                 0
xcache.gc_interval =           0
# 启用众大的缓存
xcache.var_size  =            40M
xcache.var_count =             1
# 启用众少个 key
xcache.var_slots =            80K
# 这里启用变量过机会制
xcache.var_ttl   =             1
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
; different process group of php won't share the same /tmp/xcache
xcache.mmap_path =    "/dev/zero"
xcache.coredump_directory =   ""
xcache.experimental =        Off
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off

然后翻开Xiuno BBS 3.0 改正 conf/conf.php,把mysql改成xcache

'cache' => array(
        'type' = >'xcache',
)

然后重启下IIS效劳,即可

原创作品,转载请阐明: 转载自日本一级特黄大片
本文链接地址: Windows Server 2008 R2 PHP5.6.18 开启 Xcache3.2.0

关于 日本一级特黄大片

好记性,不如烂笔头。

随机引荐

税控发票开票软件(金税盘版)v2.2.33.190318轮回更新登录办理方法插图

税控发票开票软件(金税盘版)v2.2.33.190318轮回更新登录办理方法

税控发票开票软件(金税盘版)v …

发外评论

'); })();