[Mongodb]win7 Installation MongoDB

Source: Internet
Author: User
Tags install mongodb mongodb mongodb server win32
Install MongoDB under Win7
System environment: Win7 64-bit database: mongodb-win32-i386-v2.4

The first step, of course, is to download http://www.mongodb.org/downloads

The second step decompression Mongodb-win32-i386-v2.4-latest.zip For example decompression to D:\installsofts\mongodb
Step three set the environment variable to set the $mongodb\bin to the system's environment variable path

Fourth step: Profile configuration New file Mongo.config in the extracted home directory such as here D:\installsofts\mongodb fill in the following
# #store Data  to define a
dbpath=d:\devsofts\mongodata
# #all output Go Define a location to store log files
logpath=d:\devsofts\mongolog\mongo.log
# #log Read and write operations
diaglog=3
These paths, if not specified, will be under the C disk, which is obviously not very well managed.
Fifth step: Install start MongoDB Server to use D:\installsofts\mongodb\bin>mongod.exe--config under cmd D:\installsofts\mongodb\ Mongo.config--install
..... Sat June 17:26:10.713 Service can be started to the command line with ' Net s tart MongoDB '
Then start the service: d:\installsofts\mongodb\bin>net start MongoDB Mongo DB service is starting. The Mongo DB service has started successfully.
Sixth step: D:\installsofts\mongodb\bin>mongo Landing mongodb Shell Environment
Shutdown Service: net stop MongoDB removal service: D:\installsofts\mongodb\bin>mongod.exe--remove
When we went to see the data and log directory, there are new files produced.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.