启动mongodb是failed,日志如下
1.解压wirdtiger包
tar -vxf wiredtiger-3.1.0.tar.bz2 -C /home/wiredtiger/
2.安装snappy
3.安装libsnappy
DEB-基于: sudo apt-get install libsnappy-dev
基于RPM: sudo yum install libsnappy-devel
Brew: brew install snappy
3.执行./configure --enable-snappy后,make进行安装,完成后生成工具wt
4 数据移动到/var/backup
5。进行数据恢复
./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R dump -f ../caesar.data collection-0-8102798208027342319
5. 执行 ./wt -v -h /var/backup -C "extensions=[./ext/compressors/snappy/.libs/libwiredtiger_snappy.so]" -R load -f ../caesar.data -r collection-0-8102798208027342319.wt