Centos8 安装 memcached方法

时间:2026-02-16 12:16:23

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

Centos8 安装 memcached方法

2、系统采用最小化安装,安装gcc源码编译使用

yum install gcc -y

yum install make -y

最小化安装make也需要先安装

Centos8 安装 memcached方法

3、获取源码包libevent-2.0.21-stable.tar.gz

memcached需要使用到libevent

Centos8 安装 memcached方法

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

Centos8 安装 memcached方法

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

Centos8 安装 memcached方法

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]#

Centos8 安装 memcached方法

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

make && make install

Centos8 安装 memcached方法

© 2026 途途旅游
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com