• Linux下安装php加速组件XCache


    这里选择的是稳定版本的1.2.2版本,2.0版本的不稳定。
    wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
    tar -zxf xcache-1.2.2.tar.gz
    cd xcache
    phpize
    ./configure --enable-xcache
    make
    make install
    记录下xcache的安装目录。
    编辑php.ini文件,加入Xcache,作为Zend扩展。
    [xcache-common]
    ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
    zend_extension = /路径/xcache.so
    ;; or install as extension, make sure your extension_dir setting is correct
    ; extension = xcache.so
    [xcache.admin]
    xcache.admin.auth = On
    xcache.admin.user = "mOo"
    ; xcache.admin.pass = md5($your_password)
    xcache.admin.pass = ""
    [xcache]
    xcache.shm_scheme = "mmap"
    xcache.size = 32M
    xcache.count = 1
    xcache.slots = 8K
    xcache.ttl = 3600
    xcache.gc_interval = 300
    ; Same as aboves but for variable cache
    ; If you don't know for sure that you need this, you probably don't
    xcache.var_size = 0M
    xcache.var_count = 1
    xcache.var_slots = 8K
    xcache.var_ttl = 0
    xcache.var_maxttl = 0
    xcache.var_gc_interval = 300
    ; N/A for /dev/zero
    xcache.readonly_protection = Off
    xcache.mmap_path = "/dev/zero"
    xcache.cacher = On
    xcache.stat = On
    然后重启下web服务器即可。
    php -v 测试下是否有显示Xcache加载成功

  • 相关阅读:
    安全管道工具SSF
    Dumpzilla工具第615行bug的解决办法
    火狐浏览器信息提取工具Dumpzilla
    通过构造函数来创建新对象
    利用canvas绘制序列帧动画
    canvas的图片绘制案例
    使用canvas绘制饼状图
    模仿制作京东的侧边提示栏
    使用canvas绘制扇形图
    使用canvas制作简单表格
  • 原文地址:https://www.cnblogs.com/fjping0606/p/4760446.html
Copyright © 2020-2023  润新知