Configuring the MongoDB Service

Source: Internet
Author: User
Tags mongodb

To configure the problems encountered by the MongoDB service:

1.32-bit servers don ' t have journaling enabled Bydefault.


WORKAROUND: Please use the--journal if you want durability. Add Parameters--journal

Mongod.exe--blid_ip 0.0.0.0--logpath D:\MongoDB\Server\3.2\data\logs\mongo.log--logappend--dbpathd:\mongodb\ Server\3.2\data\db--storageengine=mmapv1--servicename "MongoDB"--servicedisplayname "MongoDB"--journal--install

After adding the MongoDB service successfully, try to start the MongoDB service (win+r--〉services.msc--〉 boot)

2.windows cannot start MongoDB on the local computer.


Solution:

Mongod.lock deletion under the MongoDB installation directory \data\db\ folder:

Del Mongod.lock

* Other issues: Delete Windows Service project.

Previously installed in C disk, MongoDB some of the command path can not have a space, reload in D disk.

Workaround:

SC Delete MongoDB

Reboot the computer to create a new service with the same name, or disable the status Configuration MongoDB service encountered:

1.32-bit servers don ' t have journaling enabled Bydefault.

WORKAROUND: Please use the--journal if you want durability. Add Parameters--journal

Mongod.exe--blid_ip 0.0.0.0--logpath D:\MongoDB\Server\3.2\data\logs\mongo.log--logappend--dbpathd:\mongodb\ Server\3.2\data\db--storageengine=mmapv1--servicename "MongoDB"--servicedisplayname "MongoDB"--journal--install

After adding the MongoDB service successfully, try to start the MongoDB service (win+r--〉services.msc--〉 boot)

2.windows cannot start MongoDB on the local computer.

Solution:

Mongod.lock deletion under the MongoDB installation directory \data\db\ folder:

Del Mongod.lock

* Other issues: Delete Windows Service project.

Previously installed in C disk, MongoDB some of the command path can not have a space, reload in D disk.

Workaround:

SC Delete MongoDB

Reboot the computer to create a new service with the same name, or disable the state

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.