Start MongoDB under Windows

Source: Internet
Author: User
Tags create mongodb

Perform

Mongod--config D:\MongoDB\etc\mongodb.conf

The installation service is

SC create MongoDB binpath= "D:\MongoDB\bin\mongod.exe--service--config=d:\mongodb\etc\mongodb.conf"

Configuration parameters, see--help
Dbpath=d:\mongodb\data #数据库路径
Logpath=d:\mongodb\logs\mongodb.log #日志输出文件路径
Logappend=true #错误日志采用追加模式, after configuring this option, the MongoDB log is appended to the existing log file instead of creating a new file
Journal=true #启用日志文件, enabled by default
Quiet=true #这个选项可以过滤掉一些无用的日志信息, set to False if you need to use Debug
port=27017 #端口号 defaults to 27017

Reference http://www.cnblogs.com/lzrabbit/p/3682510.html

Start MongoDB under Windows

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.