安装memcached

在安装memcached的时候需要依赖libevent程序包

1、下载libevent-2.0.4.tar.gz
http://www.monkey.org/~provos/libevent/
到这个地址下载最新的libevent

2、解压libevent并编译安装
   tar -xzvf libevent-2.0.4.tar.gz
   cd libevent-2.0.4
   ./configure && make && make install

3、下载memcached-1.4.4.tar.gz
http://memcached.org/
到这个网站下载memcached

4、解压并安装memcached-1.4.4.tar.gz

tar -xzvf memcached-1.4.4.tar.gz
cd memcached-1.4.4
./configure && make && make install

如果不包错的话说明安装成功,检查以下memcached是否安装成功,运行which memcached 命令
# which memcached
# /usr/local/bin/memcached

返回上述结果,说明memached安装成功!

你可能感兴趣的:(memcached,memcache,libevent,休闲,高速缓存)