How to install MongoDB under Windows

Source: Internet
Author: User
Tags install mongodb

Http://www.mongodb.org/downloads

I downloaded: mongodb-win32-x86_64-2008plus-2.6.6

Extract to: D:\soft

Both DB and log two folders are created in this directory,

Add E:\soft\mongodb-win32-i386-2.0.8\bin to the path variable so that you can directly invoke the EXE file in the bin directory.

Execute the following command: Create a database file from MongoDB to the D:\SOFT\DB directory

Another window connection:

MongoDB is installed as a Windows service:

net stop MongoDB (shutdown service)Delete Service
Mongod--dbpath "D:\soft\db"--logpath "D:\soft\log\MongoDB.log"--remove--servicename "MongoDB"If the following error occurs, you need to delete the Mongod.lock in the DB directory before starting
>mongo
>couldn ' t connect to server 127.0.0.1 shell/mongo.js:84

How to install MongoDB under Windows

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.