1、获取源码包

2、解压并进入目录,开始编译
./configure --prefix=/opt/libevent

3、因为缺少gcc的包,所以会报错,先安装gcc

4、继续./configure --prefix=/opt/libevent
make && make install

5、安装 memcached
git clone https://github.com/memcached/memcached.git

6、报错
[root@vm-122-38 memcached]# ./autogen.sh
aclocal...
Did not find a supported aclocal
执行yum install automake.noarch -y安装命令

7、 ./configure --with-libevent=/opt/libevent/
make && make install

8、用普通用户测试,不能使用root执行memcached命令

