参考 http://stackoverflow.com/questions/2404742/how-to-install-mongodb-on-windows
# mongodb.conf # data lives here dbpath=D:Program FilesMongoDBdb # where to log logpath=D:Program FilesMongoDBlogmongodb.log logappend=true # only run on localhost for development bind_ip = 127.0.0.1 port = 27017 rest = true
mongod.exe --install --config "D:Program FilesMongoDBServer3.0inmongodb.conf" --logpath "D:Program FilesMongoDBlogmongodb.log"