Centos安装Memcache

1.编译安装Libevent

cd ~

curl -O http://www.monkey.org/~provos/libevent-2.0.13-stable.tar.gz

tar -zxvf libevent-2.0.13-stable.tar.gz

cd libevent-2.0.13-stable-tar.gz

./configure --prefix=/usr make && make install

2.检测一下查看是否安装:

ls -al /usr/lib | grep libevent

#显示

libevent.so -> libevent-2.0.so.5.1.2

3.安装Memcache

cd ~

curl -O http://www.danga.com/memcached/dist/memcached-1.4.0.tar.gz

tar -zxvf memcached-1.4.0.tar.gz

cd memcached-1.4.0.tar.gz

./configure --with-libevent=/usr/

make && make install

4.检测是否成功安装

ls -al /usr/local/bin/mem*

#显示

/usr/local/bin/memcached

5.开启Memcached守护进程

memcached -d -u root

#无提证明开启成功

 

posted @ 2015-08-11 11:30  zenghao  阅读(160)  评论(0编辑  收藏  举报