### 安装libevent
~~~
yum install libevent
~~~
~~~
yum install libevent-devel
~~~
### 下载Memcache
官网下载 http://memcached.org/downloads
~~~
wget http://memcached.org/files/memcached-1.5.7.tar.gz
~~~
### 解压
~~~
tar -xzvf memcached-1.5.7.tar.gz
~~~
### 配置configure
~~~
./configure --prefix=安装路径 --with-libevent=/usr/local/libevent //需要指定libevent路径
~~~
### 编译
~~~
make
~~~
### 安装
~~~
make install
~~~
### 服务端启动
~~~
memcached -p 11211 -m 10 //指定端口11211并且分配10M使用空间
~~~