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

Memcached配置指南

本帖由 admin2012-04-22 发布。版面名称:应用交流

主题状态:
主题已关闭,停止回复。
  1. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
    最新版本:http://www.xf4.org/threads/53764/
    代码:
    ############编译libevent-2.0.18######################
    wget -c https://github.com/downloads/libevent/libevent/libevent-2.0.18-stable.tar.gz
    tar -zxvf libevent-2.0.18-stable.tar.gz
    cd libevent-2.0.18-stable
    ./configure --prefix=/usr/local/libevent
    make
    make install
    cd ../
    ln -s /usr/local/libevent/lib/libevent-2.0.so.5  /lib/libevent-2.0.so.5
     
    ############memcached-1.4.13######################
    wget -c http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz
    tar -zxvf  memcached-1.4.13.tar.gz
    cd memcached-1.4.13
    ./configure --prefix=/usr/local/memcached
    make
    make install
    cd ../
     
    ############配置memcached自启动######################
    ln /usr/local/memcached/bin/memcached /usr/bin/memcached
    wget -c http://www.11ing.com/tool/conf.zip
    unzip conf.zip
    cp conf/memcached-init /etc/init.d/memcached
    chmod +x /etc/init.d/memcached
    useradd -s /sbin/nologin nobody
    chkconfig --level 345 memcached on
     
    /etc/init.d/memcached start
    
     
主题状态:
主题已关闭,停止回复。
正在加载...