CentOS Linux 下编译安装Memcached

1、编译安装libevent:

cd /data0/software/
wget http://jaist.dl.sourceforge.net/project/levent/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable/
./configure --prefix=/usr
make && make install
cd ../

2、编译安装Memcached:

wget http://memcached.org/files/memcached-1.4.24.tar.gz
tar zxvf memcached-1.4.24.tar.gz
cd memcached-1.4.24/
./configure --prefix=/usr/local/webserver/memcached --with-libevent=/usr
make && make install
cd ../

3、启动Memcached

/usr/local/webserver/memcached/bin/memcached -u root -d -m 32 -l 192.168.0.13 -p 11111

除非注明,本博客文章均为原创,转载请以链接形式标明本文地址

本文地址: http://blog.cnwyhx.com/centos-linux-install-memcached

Leave a Reply