下载 mongodb-win32-i386-2.6.9.zip
解压到D:MongoDBServer 下,跟server同级创建data(db) 和 log(mongodb.log)目录,将环境变量设置好
打开cmd,输入mongod.exe --logpath "D:MongoDBlogmongodb.log" --logappend --dbpath "D:MongoDBdatadb" --port yourPortNumber --serviceName "YourServiceName" --serviceDisplayName "YourServiceName" --install
右键我的电脑-管理-服务,找到并开启服务