memcache安装

先安装依赖包yum -y install libevent libevent-devel

然后安装gcc make yum -y install gcc gccc++ make

从官网下载wget http://www.memcached.org/files/memcached-1.4.36.tar.gz

然后解压 tar -xzvf memcached-1.4.36.tar.gz

cd memcached-1.4.36 

configure时指定目录 ./configure --prefix=/apps/svr/memcache

编译和安装 make&&make install

切换到apps 用户

启动 /apps/svr/memcache/bin/memcached -d -m 4096 -u apps -l 172.18.100.4 -p 20130 -c 10240 -P /apps/svr/memecache/memcached.pid

原文地址:https://www.cnblogs.com/hyming011/p/8258796.html