Start MongoDB issues that occur

Source: Internet
Author: User

When you start MongoDB, start the server first, and then start the client

Start the service side

1. Find a directory where MongoDB data is stored, such as the D disk under Data

2. Locate the bin directory under MongoDB

3. Configure the data storage path Mongod.exe--dbpath D:\data

4. When the startup is successful, the following information will appear, listening to port 27017, you can use the local test port number is a pass

Note: Do not use CTRL + C exit at this time, otherwise the link will not be the address, the following error is thrown

Start the client and start a window with cmd

You can then start the command directly

Then the "Connect failed" exception will not be thrown

Start MongoDB issues that occur

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.