memcache的安装部署启动

andyhuabing 2020-05-22

1、安装libevent类库

解压:#tar -zxvf libevent-2.0.21-stable.tar.gz
进入目录:#cd libevent-2.0.21-stable
指定安装路径:#./configure --prefix=/usr/local/libevent
编译安装:#make && make install


2、安装memcache组件

#tar -zxvf memcached-1.5.4.tar.gz
#cd memcached-1.5.4
#./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
#make && make install

3、memcache常用命令

./memcached -d -m 1024 -l 192.168.3.221 -u root -p 11211

相关推荐