1.服务端安装
先去下载最新版memcached源码包,解压
[root@localhost etc]# cd /usr/local/src/
[root@localhost src]# wget http://www.memcached.org/files/memcached-1.5.12.tar.gz
[root@localhost src]# tar -zxvf memcached-1.5.12.tar.gz
编译安装
[root@localhost src]# cd memcached-1.5.12
[root@localhost memcached-1.5.12]# ./configure --prefix=/usr/local/memcached
报错了,提示缺少依赖libevent
checking for libevent directory... configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/
If it's already installed, specify its path using --with-libevent=/dir/
去下载安装最新版libevent
[root@localhost src]# wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
[root@localhost src]# tar -zxvf libevent-