Install and configure mongodb in win10 system, win10mongodb

Source: Internet
Author: User
Tags install mongodb

Install and configure mongodb in win10 system, win10mongodb

Download the msi 3.4.10 from the official website and install mongodb in the folder on disk D.

Then we start to configure:

Create a data folder in the installation path

Create another db folder in the data folder

D:/mongodb/data/db

Open the cmd (windows key + r Enter cmd) command line and enter the D: \ mongodb \ bin directory

Run the following command to start the mongodb service:

D:/mongodb/bin> mongod-dbpath D: \ mongodb \ data \ db

Open the browser and enter www. localhost: 27017 (this is the default port used by mongodb)

If It looks like you are trying to access MongoDB over HTTP on the native driver port appears on the page, the connection is successful.

Every input is very difficult to start, so I wrote the form of a batch file.

D:/mongodb/bin> mongod-dbpath D: \ mongodb \ data \ db

Save it as start. bat. It is very convenient to double-click it next time.

You can enter services. msc in the cmd window to open the service window and see that the mogodb service is actually started.

Go to the background shell and directly start the bindirectory double-click cmd.exe file. You can use shell to learn mongodb later.

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.