1、操作系统版本为CentOS Linux release 8.1.1911 ,为当前最新版系统

2、系统采用最小化安装,安装gcc源码编译使用
yum install gcc -y
yum install make -y
最小化安装make也需要先安装

3、获取源码包libevent-2.0.21-stable.tar.gz
memcached需要使用到libevent

4、解压并编译安装libevent
tar zxf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure -prefix=/home/libevent-2.0.21-stable
make && make install

5、获取memcached源码安装包memcached-1.4.32.tar.gz

6、解压memcached-1.4.32.tar.gz
[root@localhost ~]# tar xzf memcached-1.4.32.tar.gz
[root@localhost ~]# cd memcached-1.4.32/
[root@localhost memcached-1.4.32]#

7、./configure -with-libevent=/home/libevent-2.0.21-stable
make && make install
