MongoDB is installed as a 32-bit Windows service

Source: Internet
Author: User
Tags install mongodb mongodb windows

CMD start MongoDB Here is not said, relatively simple.

To install MongoDB as a Windows service on a 32-bit machine, you must turn on journal. Journal is similar to the redo.log of relational database, because MongoDB thinks that the open journal consumes memory, so it is not turned on on the 32-bit machine (64 bit is turned on by default).
The following is how to install the MongoDB Windows service as a configuration file startup.

Create a new mongod.cfg file and place it in the bin directory of the MongoDB installation file, as follows:
Journal=true
Logpath=d:\mongodb\data\log\mongodb.log
Dbpath=d:\mongodb\data\db

The first line indicates that journal is turned on.
The second line represents the path to the log file.

The third line represents the folder where the MongoDB database resides.

Run the Command window as an administrator:

Open the directory where the MongoDB installation file bin is located, and run the following command:

Mongod--config "D:\mongodb\bin\mongod.cfg"--install

After installation, the MongoDB service is started by default and needs to be started manually.

MongoDB is installed as a 32-bit Windows service

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.