美文网首页
CentOS 7下Memcached 安装与配置

CentOS 7下Memcached 安装与配置

作者: PHP菜鸡 | 来源:发表于2018-04-25 22:46 被阅读16次

    安装memcached之前首先需要安装libevent,我这里用的版本是:

      libevent-2.0.22
      memcached-1.4.25

    1.安装libevent

    1. 查看有没有安装libevent
      shell ls -al /usr/lib | grep libevent
      可使用:sehll rpm -e libevent -- nodeps进行卸载
    2. 下载libevent
      shell wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stab
    3. 解压
      shell tar -zxvf libevent-2.1.8-stable.tar.gz
    4. 进入目录
      shell cd libevent-2.1.8-stable/
      5.指定安装位置并开始安装和编译
    ./configure --prefix=/usr/local/libevent
    make
    make install  
    

    安装libevent成功截图

    安装成功libevent

    1.安装memcached

    1. 下载memcached
      shell wget http://www.memcached.org/files/memcached-1.5.7.tar.gz
    2. 解压
      shell tar -zxvf memcached-1.5.7.tar.gz
    3. 进入目录
      shell cd memcached-1.5.7/

    5.指定安装位置并开始安装和编译

    ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
    make
    make install  
    

    安装memcached成功截图

    安装memcached成功截图

    相关文章

      网友评论

          本文标题:CentOS 7下Memcached 安装与配置

          本文链接:https://www.haomeiwen.com/subject/uisulftx.html