MongoDB as a Windows service installation

Source: Internet
Author: User
Tags create mongodb
Cause:

After installing the MongoDB, want to open the page end controller to look, found http://127.0.0.1:28017/_commands this link can not open, the hint rest does not open,

You need to add a configuration at startup--rest
Solve:

SC Delete MongoDB #先删除掉之前的

Attention:
Binpath= Here's a space where the commands need to be enclosed in quotes.

SC create MongoDB binpath= "\" D:\Program files\mongodb\server\3.2\bin\mongod.exe\ "--config \" D:\Program Files\mongodb \server\3.2\mongod.cfg\ "--rest--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.