WINDOWS8 system Installation MongoDB 2.6.3 Configuration service startup

Source: Internet
Author: User
Tags create mongodb

Transferred from: http://winfan.net/655.html

1. Download MongoDB Package
2. Unzip the zip to D:\MongoDB
3. Create a directory D:\MongoDB\data\db
4. Create a log directory D:\MongoDB\log
5. Create the configuration file D:\MongoDB\mongod.cfg content as follows

123456789 systemLog:  destination: file  path: D:\MongoDB\log\mongo.lognet:  bindIp: 127.0.0.1  port: 27017storage:  dbPath: D:\MongoDB\data\db  directoryPerDB: true

6. Open C:/windows/system32/cmd.exe with administrator to execute the following command

1 d:\MongoDB\bin\mongod.exe --config d:\MongoDB\mongod.cfg --install

Then execute

1 sc create MongoDB binPath= "d:\MongoDB\bin\mongod.exe --config=d:\MongoDB\mongod.cfg --service"displayname= "MongoDB 2.6 Standard Server"start= auto

PS: How to remove this service: then SC delete MongoDB

7: Open Service

12 net start MongoDB //开启服务net stop MongoDB  //停止服务

WINDOWS8 system Installation MongoDB 2.6.3 Configuration service startup

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.