MongoDB installation Configuration

Source: Internet
Author: User

MongoDB installation Configuration

Installation

MongoDB's website for MongoDB. When downloading, you can choose either to install the package or to compress the package.

When the download is complete, double-click the installation package and install it.

After the installation is complete, you can see the directories seen in the installation directory

Configuring Environment variables

The EXE in the directory can be understood as a toolset that MongoDB provides to developers, and to make it easier to use these tools, we add this directory to the environment variables so that we can run the tools globally.

Create a storage directory

Before starting the MongoDB service, we need to specify the location of the MongoDB data store first.
Set up the storage directory on the E-disk E:\mongodb\data\

Start the MONGO service

Open cmd, input mongod.exe-dbpath=e:\mongodb\data\, enter start service
If the startup succeeds it will show up as:

You can see the log display in the diagram, the service is turned on and listening on port 27017.
Enter http://localhost:27017 in the browser
If it appears
It looks like you is trying to access MongoDB over HTTP on the native driver port.
Indicates that the service started successfully.

Enter the MongoDB command line

Open a new CMD window, enter Mongo.exe to enter the command line

Article Foreverpx
Article original link: MongoDB installation configuration

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.