安装memcachedb

先安装libevent 
tar zxvf libevent-1.4.5-stable.tar.gz
cd libevent-1.4.5-stable.tar.gz
./configure
make
make install

之后安装Berkeley Db
tar zxvf db-4.7.25.tar.gz
cd db-4.7.25.tar.gz
cd build_unix
../dist/configure
make
make install


echo "/usr/local/BerkeleyDB.4.7/lib/" >> /etc/ld.so.conf

然后重载系统ldconfig

ldconfig

之后安装Memcachedb

tar zxvf memcachedb-1.2.0.tar.gz
cd memcachedb-1.2.0
./configure
make 
make install


启动memcachedb

memcachedb -p 11212 -d -r -u root -l localhost  -H /home/mdb_11212 -N -P /tmp/memcachedb.pid


你可能感兴趣的:(build)