1) 首先要先安装libevent库。 yum install libevent libevent-devel
2) 安装Memcached 客户端
tar -zxvf memcached-1.4.20.tar.gz
cd memcached-1.4.20
./configure --prefix=/usr/local/memcached
make
make install
3)test用户启动
/usr/local/bin/memcached -p 11211 -m 512m -u test -d