所需软件:
libevent-2.0.19-stable.tar.gz
memcached-1.4.14.tar.gz
设用户名为work
1.安装libevent。
在libevent源程序的根目录下依次执行:
./configure --prefix=/home/work/bin/libevent
make && make install
执行完后看下目录”/home/work/bin/libevent“是否有东西,有东西表示安装成功。
2.安装memcached
在 memcached 源程序的根目录下依次执行:
./configure --prefix=/home/work/bin/memcached --with-libevent=/home/work/bin/libevent
make && make install