Installing MongoDB steps on Windows

Source: Internet
Author: User
Tags install mongodb mongo shell

1. Download the. msi file on the MongoDB website and I'm under the community version: Https://www.mongodb.com/download-center#community

2. Click the MSI file to install MongoDB, the default installation is C:\Program files\mongodb\server\3.2

3. Add the installation path to the environment variable, that is, add the C:\Program files\mongodb\server\3.2\bin to the environment variable. About environment variables: Right click on the computer, select Properties, click on the System Advanced settings, click Advanced Environment variables, find the variable named path of a row click Edit, add C:\Program files\mongodb\server\3.2\bin to the last, Remember to use a semicolon to separate it from the front.

4. Build the MongoDB data and log folder. For example, in the D disk to create a folder MongoDB, under which the sub-folder data and log are created.

5.cmd Open a Command Prompt window, enter Mongod--dbpath "D:\mongoDB\data"--logpath "D:\mongoDB\log\mongo.log"--install--servicename " MongoDB ", enter

6.net start Mongdb, will prompt the MongoDB service has started successfully, the default listening TCP port is 27017, you can enter localhost:27017 in the browser address bar, you will see the appearance:

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

7. Use the MONGO command to enter the MONGO shell for database operations

Installing MongoDB steps on 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.