Memcached基础及底层机制剖析(CentOS6.8实战)

Memcached基础及底层机制剖析(CentOS6.8实战)

1.1 Memcached入门

Memcached基础及底层机制剖析(CentOS6.8实战)

1.2 Memcached安装部署

  • libevent安装


    Memcached基础及底层机制剖析(CentOS6.8实战)

    Memcached基础及底层机制剖析(CentOS6.8实战)
    wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

    Memcached基础及底层机制剖析(CentOS6.8实战)
    ./configure --prefix=/opt/install/libevent

    Memcached基础及底层机制剖析(CentOS6.8实战)
    make make install

    Memcached基础及底层机制剖析(CentOS6.8实战)
    安装成功
  • memcached 安装


    Memcached基础及底层机制剖析(CentOS6.8实战)
    wget https://memcached.org/files/memcached-1.5.8.tar.gz

    Memcached基础及底层机制剖析(CentOS6.8实战)
    tar -zxvf memcached-1.5.8.tar.gz

    Memcached基础及底层机制剖析(CentOS6.8实战)
    ./configure --prefix=/opt/install/memcached --with-libevent=/opt/install/libevent

    Memcached基础及底层机制剖析(CentOS6.8实战)
    make & make install

    Memcached基础及底层机制剖析(CentOS6.8实战)
    安装成功

1.3 Memcached启动参数讲解

Memcached基础及底层机制剖析(CentOS6.8实战)

Memcached基础及底层机制剖析(CentOS6.8实战)
bin/memcached --help
  • 启动参数 使之成为守护进程


    Memcached基础及底层机制剖析(CentOS6.8实战)
    bin/memcached -d -u root -l 192.168.1.191 -p 2222 -c 128 -m 100 -P myPid

1.4 命令演示准备以及新增操作实战

Memcached基础及底层机制剖析(CentOS6.8实战)

安装 Telnet


Memcached基础及底层机制剖析(CentOS6.8实战)
yum install telnet

Memcached基础及底层机制剖析(CentOS6.8实战)

1.5 替换操作

Memcached基础及底层机制剖析(CentOS6.8实战)

1.6 检查更新操作演示

Memcached基础及底层机制剖析(CentOS6.8实战)

1.7 删除操作

Memcached基础及底层机制剖析(CentOS6.8实战)

1.8 Memcached内存分配机制

Memcached基础及底层机制剖析(CentOS6.8实战)

1.9寻找Chunk历险记

Memcached基础及底层机制剖析(CentOS6.8实战)
上一篇:Elasticsearch实战——全文检索架构设计


下一篇:AQtime实战