linux 安装memcached

一、安装libevent

sudo wget http://www.monkey.org/~provos/libevent-1.3.tar.gz
sudo tar zxvf libevent-1.3.tar.gz
cd libevent-1.3
sudo ./configure -prefix=/usr
sudo make
sudo make install
查看libevent是否安装成功:
ls -al /usr/lib | grep libevent

二、安装Memcached
sudo wget http://www.memcached.org/files/memcached-1.4.20.tar.gz
sudo tar zxvf memcached-1.4.20.tar.gz
cd memcached-1.4.20
sudo  ./configure --with-libevent=/usr
sudo make
sudo make install

测试是否成功安装memcached:
ls -al /usr/local/bin/mem*

启动memcached
sudo  /usr/local/bin/memcached -d -m 10 -u root -l 192.168.164.129 -p 12000 -c 256 -P /tmp/memcached.pid

 

测试:

telnet  192.168.164.129  12000

linux 安装memcached,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。