memcache安装

1,下载软件:
memcached-1.4.15.tar.gz libevent-release-1.4.15-stable.tar.gz

2,安装lib
tar -xvf libevent-release-1.4.15-stable.tar.gz
cd libevent-release-1.4.15-stable
./autogen.sh
./configure –prefix=/usr/local/libevent-release
make
make install

tar -xvf memcached-1.4.15.tar.gz
cd memcached-1.4.15
./configure –prefix=/usr/local/memcache –with-libevent=/usr/local/libevent-release
make
make install

3,启动
nohup /usr/local/memcache/bin/memcached -d -m 1024 -u root -l 192.126.12.14 -p 11211 -c 2048 -P /var/memcache/memcached.pid >/var/memcached.log &

4,memcache登录查询

报错:
[root@mofficedb2 libevent-2.0.21-stable]# ./autogen.sh
./autogen.sh: line 11: aclocal: command not found
[root@mofficedb2 libevent-2.0.21-stable]#
需要安装libtool,yum install -y libtool

你可能感兴趣的:(memcache安装)