centos 6.8安装memcached

centos 6.8安装memcached

安装准备

yum -y install gcc 
yum -y install gcc-c++
cd /data/soft
wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
wget http://www.memcached.org/files/memcached-1.5.7.tar.gz

安装libevent

cd /data/soft
tar zxvf libevent-2.1.8-stable.tar.gz 
cd libevent-2.1.8-stable
./configure --prefix=/usr
make && make install

安装memcached

cd /data/soft
tar zxvf memcached-1.5.7.tar.gz
cd memcached-1.5.7
./configure --with-libevent=/usr
make && make install

启动命令

memcached -d -l 127.0.0.1 -p 11211 -m 1024 -u root

你可能感兴趣的:(centos)