memcached 安装-linux安装

1.下载

下载地址:http://memcached.org/

2.解压

[root@localhost opt]# tar -zxvf memcached-1.5.8.tar.gz 

3.配置

[root@localhost local]# cd /usr/local/
[root@localhost local]# pwd
/usr/local
[root@localhost local]# mkdir memcached
[root@localhost local]# cd /opt/memcached-1.5.8/
[root@localhost memcached-1.5.8]# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/lib/libevent

--with-libevent为你的libevent安装的lib的目录

4.编译

[root@localhost memcached-1.5.8]# make

5.安装

[root@localhost memcached-1.5.8]# make install 

6.验证是否安装成功

[root@localhost memcached-1.5.8]# ps -ef|grep memcached
root      21501  11257  0 03:13 pts/2    00:00:00 grep --color=auto memcached
[root@localhost memcached-1.5.8]# 

猜你喜欢

转载自blog.csdn.net/u014636209/article/details/82832557