wget https://github.com/yinqiwen/ardb/archive/0.9.zip
unzip 0.9.zip
cd ardb-0.9
make
提示 jemalloc/jemalloc.h 不存在,先下载 安装 jemalloc
wget http://soft.vpser.net/lib/jemalloc/jemalloc-4.4.0.tar.bz2
tar jxf jemalloc-4.2.0.tar.bz2
cd jemalloc-4.2.0
./configure
make && make install
echo /usr/local/lib/ >> /etc/ld.so.conf
ldconfig
http://blog.csdn.net/superbfly/article/details/59514207
http://blog.csdn.net/wang_xijue/article/details/47128649
于是下载安装 binutils
wget http://ftp.gnu.org/gnu/binutils/binutils-2.28.tar.bz2
tar -xjf binutils-2.28.tar.bz2
cd binutils-2.28
./configure
make
make install
再次 make ,顺利安装好了 rocksdb。
mkdir /usr/local/ardb
cp src/ardb-* ardb.conf /usr/local/ardb
初步使用:存入近100W hash key,df 显示db 磁盘占用 6.1G
** Compaction Stats [0] **
Level Files Size(MB} Score Read(GB} Rn(GB} Rnp1(GB} Write(GB} Wnew(GB} Moved(GB} W-Amp Rd(MB/s} Wr(MB/s} Comp(sec} Comp(cnt} Avg(sec} KeyIn KeyDrop
----------------------------------------------------------------------------------------------------------------------------------------------------------
L0 0/0 0.00 0.0 0.0 0.0 0.0 5.1 5.1 0.0 0.0 0.0 46.9 112 24 4.652 0 0
L1 8/0 452.34 0.9 10.2 5.1 5.1 10.2 5.1 0.0 2.0 45.5 45.5 229 12 19.094 1773K 177
L2 78/0 4763.26 0.9 15.9 4.7 11.3 15.9 4.7 0.0 3.4 44.5 44.5 366 72 5.085 2821K 634
Sum 86/0 5215.60 0.0 26.1 9.8 16.3 31.2 14.9 0.0 6.1 37.8 45.2 707 108 6.545 4594K 811
# Keyspace
db0:keys=932832