Places to be aware of when installing MongoDB under Windows

Source: Internet
Author: User
Tags mongodb client

First, the installation method is given.

1. Download the installation package for the corresponding platform from http://www.mongodb.org, this is Mongodb-win32-i386-2.2.1.zip

2. Extract the bin from the compressed file to the installation directory, here: D:\mongodb\bin

3. Open the cmd command line and enter the directory D:\mongodb

4. Create log directory: D:\mongodb\logs

5. Create data file directory: D:\mongodb\data

6. Create Profile: D:\mongodb\mongod.cfg

The contents of the mongod.cfg are as follows, the first line configures the log directory, the second line configures the data file directory

Logpath=d:\mongodb\logs\mongodb. Log    DBPath=d:\mongodb\data

7. Install as a Windows service, start the command line, enter
D:\mongodb\bin>mongod.exe--config d:\mongodb\mongod.cfg--install

8. Start the service: net start mongdb

9. Stop service: net stop Mongdb

10. Removal Service: D:\mongodb\bin>mongod.exe--remove

The installation method is very simple, here are the points to illustrate:

1. You can add d:\mongodb\bin to the environment variable path, and the method does not repeat.

2. for the 7th article of the method, a key note should be made. In Win7 and WIN8 systems, because of user rights control, when installing Windows services, to "Run as Administrator" cmd, and in the pop-up firewall interception allows installation (if the firewall is open), otherwise the service will not be installed successfully (landlord in this step for a long time to fix, haha).

3. Test, in the browser input http://localhost:21017, can appear below this or similar words, it means that the installation was successful.

It looks like you is trying to access MongoDB over HTTP on the native driver port.

4. Finally attach the MongoDB client tool MongoVUE1.5 Hack version installation method and http://yhv5.com/mongovue_480.html

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.