日期:2014-05-16  浏览次数:20679 次

Linux Memcached 安装指南

八、Memcached安装
8.1.准备工作
8.1.1.1.准备安装文件
下载memcached与libevent的安装文件
http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz(memcached下载地址)
https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz(libevent下载地址)
8.2.具体安装步骤
8.2.1.具体安装步骤
1.由于memcached依赖于libevent,因此需要安装libevent。由于linux系统可能默认已经安装libevent,执行命令:
rpm -qa|grep libevent
查看系统是否带有该安装软件,如果有执行命令:
rpm -e libevent-1.4.13-4.el6.x86_64 --nodeps(由于系统自带的版本旧,忽略依赖删除)
2. 安装libevent命令:
tar zxvf libevent-2.0.21-stable.tar.gz
??cd libevent-2.0.21-stable
??./configure --prefix=/usr/local/libevent
??make
??make install
至此libevent安装完毕;
3. 安装memcached命令:
tar zxvf memcached-1.4.2.tar.gz
??cd memcached-memcached-1.4.2
? ? ? ? ./configure --prefix=/usr/local/memcached --with-libevent=