1, download mongdb zip file, extract will find the Bin folder, in the same level directory to build a data directory,
2. Build a log and DB folder in the data directory,
3. Build a MongoDB.log file under the log file
4. Specify the DB and log path commands as follows: (using the console action under the Bin folder)
> CD C:\Program files\mongodb\bin
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program files\ Mongodb\data\log\mongodb.log "--install--servicename" MongoDB "
Here MongoDB.log is the log file that was started,--servicename the "MongoDB" service named MongoDB
5. Start the service:
> net start MongoDB
Deactivate service
> net stop MongoDB
6. Uninstall Service:
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program files\ Mongodb\data\log\mongodb.log "--remove--servicename" MongoDB "
MongoDB installation on Win7 (Lite version)