LibEvent-MemCached安装

安装非常简单,记录一下操作,非常简单,加上版本号应该可以通用,记录一下,备后用!

先下载libevent和memcached的gz包,下载地址自己去找

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cd /usr/local
tar -zxvf libevent-x.x.tar.gz
tar -zxvf memcached-x.x.tar.gz
cd libevent-x.x
./configure --prefix=/usr/local/libevent
make
make install
cd ../
cd memcached-x.x
./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
make
make install
cd ..
rm -fr libevent-x.x
rm -fr memcache-x.x
rm libevent-x.x.tar.gz
rm memcache-x.x.tar.gz
cd memcached
cd bin -d -m 1024 -p 12001 -u root