MongoDB installation Configuration

Source: Internet
Author: User
Tags install mongodb mongodb server

S

Note: The native Environment-win7 SP1, install 3.6 version of MONGO will be stuck in a place, unable to continue, check the information after installing 3.4 version can be installed normally, small partners notice!

1: Download and install

: https://www.mongodb.com/download-center?jmp=nav#community

After downloading, click Install, you can choose a custom installation path.

Always Next

Configuration Data directory and log directory, and configuration files

This allows you to configure them

In order to run the MongoDB server from the command prompt, you must execute the Mongod.exe file from the bin directory of the MongoDB directory.

Connect to MongoDB

We can run the Mongo.exe command in the command window to connect to MongoDB and execute the following command:

F:\mongodb\bin>mongo.exe

Install MongoDB Service (install to boot start service)

By executing Mongod.exe, using the--install option to install the service, use the--config option to specify the previously created configuration file.

F:\mongodb\bin>mongod.exe--config "F:\MongoDB\mongod.cfg"--install

And then it's over.

You can now start the MongoDB service or close

MongoDB Background Management Shell

Start MONGO after opening the bin below the Mongo.exe, enter MONGO can enter the shell command mode, you can write JS code what

MongoDB installation Configuration

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.