mongodb源码

download build install

1. 下载版本r2.4.0-rc1:
  471  git clone git://github.com/mongodb/mongo.git
  476  git tag -l
  477  git checkout r2.4.0-rc1

2. Build:
  487  scons all

3. Install: 
  511  scons --prefix=/mnt/opensource/binary/mongo install

学习源码,就不用管第3步了,2执行完后,就可以在source code所在目录中的相关bin启动了
在源码目录中的  配置启动:
/mnt/opensource/mongo$ ./mongod --dbpath /mnt/opensource/data


http://www.mongodb.org/about/tutorial/build-mongodb-on-linux/
http://www.cnblogs.com/lipan/archive/2011/03/08/1966463.html

=============================================================================
疑问:  每次添加log后,重新build如果还是 scons all 会很费时,还有更快的吗?

你可能感兴趣的:(mongodb源码)