#下载压缩包
wget http://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz/download
wget http://www.memcached.org/files/memcached-1.4.24.tar.gz
#解压安装libevent
tar -zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure -prefix=/usr/local/libevent
make
sudo make install
#解压安装memcached
tar -zxvf memcached-1.4.24.tar.gz
cd memcached-1.4.24
./configure -prefix=/usr/local/memcached-with-libevent -with-libevent=/usr/local/libevent
make
sudo make install
#启动memcached
cd /usr/local/memcached-with-libevent/bin
./memcached
#连接memcached server
telnet 127.0.0.1 11211
#测试启动成功
stats
转载于:https://my.oschina.net/u/1379199/blog/526472