mongod --logpath E:\mySpace\dev\mongoDB2.6\log\MongoDB.log --logappend --dbpath E:\mySpace\dev\mongoDB2.6\data --directoryperdb --serviceName MongoDB --install
转自:
http://blog.csdn.net/goustzhu/article/details/8165905
http://my.oschina.net/zarger/blog/102264