zoukankan      html  css  js  c++  java
  • Linux 下编译安装xCache命令速记

    注意要先确保/path-to-php/bin/php-config存在
    下载链接:

    http://pan.baidu.com/s/1hqh5pDM


    #解压xcache源代码
    tar -zvxf xcache-3.1.0.tar.gz

    #进入安装目录
    cd xcache-3.1.0

    #安装前执行phpize配置
    /path-to-php/bin/phpize

    #安装配置

    ./configure --prefix=/path-to-php/lib/php/extensions
    --with-php-config=/path-to-php/bin/php-config
    --enable-xcache

    #编译

    make

    #安装

    make install

    #拷贝xcache管理页面
    cp ./htdocs /web-root/xcache -r

    #追加配置文件xcache.ini至php.ini
    cat xcache.ini >> /path-to-php/etc/php.ini

    #配置管理xcache的帐号

    vi /path-to-php/etc/php.ini

    xcache.admin.user = "userName"

    #这里的userPass 是md5后的字符串, md5('userPass')

    xcache.admin.pass = "userPass"

    #重启apache
    /path-to-apache/bin/apachectl restart

    #安装完成

    附xcache官网配置文档链接地址:

    http://xcache.lighttpd.net/wiki/XcacheIni

  • 相关阅读:
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    netty中Pipeline的ChannelHandler执行顺序案例详解
    Pi-设置无线
    Pi1-Centos
    gitlab升级
    ansible
    我也玩Jenkins
  • 原文地址:https://www.cnblogs.com/yjken/p/3921688.html
Copyright © 2011-2022 走看看