Create a MONGO service under Windows

Source: Internet
Author: User

First you need to download the MONGO installation package

Cmd.exe this needs to be opened with administrator privileges

Enter the installation directory to the MONGO

First, create a Data folder manually according to the following command to the C drive

Create a DB folder in data a log folder

Mongod represents the command to execute MONGO

-dbpath represents the creation of a database file

-logpath to create a log file

-install-servicename represents the name of the service that was created

"" is the file and log files of the database

When creating the database file and creating the log file, if there is no folder C in the specified path, the error will be made, so you need to manually create these folders and then execute the following command

Mongod-dbpath "C:\MongoDB\Data\db"-logpath "C:\MongoDB\Data\log\MongoDB.log"-install-servicename "MongoDB"

And then execute this command.

So this MONGO service is created.

Create a MONGO service under Windows

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.