MongoDB Installation and Startup

Source: Internet
Author: User

Installation:

1. MongoDB (V3.4.7) installation package: Https://www.mongodb.com/download-center#community

After the successful download, the installation mode Select customer can customize the installation path, I am installed in the D:\mongodb\

A bin directory is generated when the installation is complete.

2. Configure the D:\mongodb\bin to the environment variable path.

3. Create a new DB directory and log directory under the MongoDB directory and create a new Mongodb.log file in the log directory.

  

Start:

Go to the Mongodb/bin directory and run Mongod.exe as administrator.

Run cmd as Administrator and enter the following command:

Mongod--dbpath "D:\mongodb\db"--logpath "D:\mongodb\log\mongodb.log"--logappent--install--servicename "Mong ODB "

Then execute the: net start MongoDB command, which appears as follows to start the success

  

MongoDB Installation and Startup

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.