1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

编译Xcache

本帖由 admin2013-02-16 发布。版面名称:应用交流

  1. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
    下载XCache 3.0.1 并进入文件夹内
    代码:
    wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz
    tar -zxf xcache-3.0.1.tar.gz
    cd xcache-3.0.1
    
    编译
    代码:
    /usr/local/php/bin/phpize
    ./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-config
    make
    make install
    
    编辑php.ini文件,加入Xcache
    代码:
    [xcache-common]
    extension =xcache.so
    [xcache.admin]
    xcache.admin.enable_auth =off
    xcache.admin.user = "账号"
    xcache.admin.pass = "MD5密码"
    [xcache]
    xcache.shm_scheme = "mmap"
    xcache.size = 128M
    xcache.count = 8
    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.readonly_protection = Off
    xcache.mmap_path = "/dev/zero"
    xcache.coredump_directory = "/tmp/xcache/"
    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 = ""
     
正在加载...