When you start MongoDB, the cmd window flashes past _mongodb

Source: Internet
Author: User
Tags mongodb

To facilitate startup of MongoDB, we typically form a Windows batch file (. bat)

The contents are as follows:
D:\mongo\bin\mongod–dbpath=d:\db
Format: The path of the mongod–db under bin in MONGO
The normal startup results are as follows:

But sometimes there is a flash after the start of the situation, the solution is as follows: the
D:\mongo\bin\mongod–dbpath=d:\db copied to CMD, there are some error prompts:
1, hard disk space is too small, need a hard drive to vacate part of the space (if you are just a normal start, and the hard disk download some of the data after this phenomenon, most likely this problem),
2. Delete the. lock file under DB file and restart the MONGO database.
3, to see if the access port of the database is occupied, the default is 27017 ports. Use Netstate-ano to view it under CMD.

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.