MongoDB Install version Win7

Source: Internet
Author: User
Tags install mongodb log log

First download the Mongdb Zip package, you can go to: http://www.mongodb.org/downloads. Select 32-bit or 64-bit.

Create a MongoDB folder on the D disk, D:\mongodb. Copy all the contents of the extract into the folder. and create the Data folder under this folder. D:\mongodb\data. Create the DB and log folders under the Data folder.

Create a MongoDB.log log file under log.

Enter the bin directory of the installation directory, CD D:/mongodb/bin

> D:\mongodb\bin>mongod--dbpath "d:\mongodb\data\db"

A message similar to this will appear.

Then open a new command-line window. Test it for a moment.

The result shows that it was successful.

Enter exit or CTRL + C to exit.

When Mongod.exe is closed, Mongo.exe cannot connect to the database, so it is troublesome to open the Mongod.exe program every time you want to use the MongoDB database, so we can install MongoDB as a Windows service at this time.

> D:\mongodb\bin>mongod--dbpath "d:\mongodb\data\db"--logpath "D:\mongodb\data\log\MongoDB.log"--install-- ServiceName "MongoDB"

Here MongoDB.log is the log file that was started,--servicename the "MongoDB" service named MongoDB

Then start the MongoDB service

> D:\mongodb\bin>net START MongoDB

The MongoDB service has started successfully.

Then look at the system services.

Right-click My Computer--services and apps--services

See the MongoDB service already there.

Using MONGO's visual management tools

It's ready to use. There was a record at the beginning. This is a log record.

We're done here. Mongovue tools.

MongoDB Install version Win7

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.