memcached 源码安装
1.You'll likely need to install the development package for libevent
- Ubuntu:apt-get install libevent-dev
- Redhat/Fedora:yum install libevent-devel
Get
wget http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
Config
Optional install destination
If your compiling from source you likely want to specify a destination directory as well, replace /usr/local/memcached with whatever you fancy.
./configure --prefix=/usr/local/memcached
Make and install
make && make test
sudo make install