Ubuntu安装memcache
实验环境:
ubuntu 10.04
libevent 2.0.21
memcache 1.4.15
1. 首先安装g++
apt-get install g++
2. 安装libevent
首先检查是否已经安装libevent,ls -al /usr/lib | grep libevent
进入libevent压缩包所在的文件夹
tar zxvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr
make
make install
3. 安装memcache
进入memcache压缩包所在的文件夹
tar zxvf memcached-1.4.15.tar.gz
cd memcached-1.4.15
./configure --prefix=/usr/local/memcache --with-libevent=/usr
make
make install