Memcached基础及底层机制剖析(CentOS6.8实战)
2018-06-05 本文已影响89人
紫霞等了至尊宝五百年
1.1 Memcached入门
1.2 Memcached安装部署
-
libevent安装
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
./configure --prefix=/opt/install/libevent
make make install
安装成功 -
memcached 安装
wget https://memcached.org/files/memcached-1.5.8.tar.gz
tar -zxvf memcached-1.5.8.tar.gz
./configure --prefix=/opt/install/memcached --with-libevent=/opt/install/libevent
make & make install
安装成功
1.3 Memcached启动参数讲解
bin/memcached --help
-
启动参数 使之成为守护进程
bin/memcached -d -u root -l 192.168.1.191 -p 2222 -c 128 -m 100 -P myPid
1.4 命令演示准备以及新增操作实战
安装 Telnet
yum install telnet