CentOS 7下Memcached 安装与配置
2018-04-25 本文已影响16人
PHP菜鸡
安装memcached之前首先需要安装libevent,我这里用的版本是:
libevent-2.0.22
memcached-1.4.25
1.安装libevent
- 查看有没有安装libevent
shell ls -al /usr/lib | grep libevent
可使用:sehll rpm -e libevent -- nodeps
进行卸载 - 下载libevent
shell wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stab
- 解压
shell tar -zxvf libevent-2.1.8-stable.tar.gz
- 进入目录
shell cd libevent-2.1.8-stable/
5.指定安装位置并开始安装和编译
./configure --prefix=/usr/local/libevent
make
make install
安装libevent成功截图
安装成功libevent1.安装memcached
- 下载memcached
shell wget http://www.memcached.org/files/memcached-1.5.7.tar.gz
- 解压
shell tar -zxvf memcached-1.5.7.tar.gz
- 进入目录
shell cd memcached-1.5.7/
5.指定安装位置并开始安装和编译
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make
make install