[Go] Modify the registry to add MongoDB to system services

Source: Internet
Author: User
Tags mongodb windows

Http://www.webiyo.com/2011/02/install-mongodb-service-on-windows-7.html

Download MongoDB

You can download MongoDB in the different editions viz.
32bit MongoDB Direct Download | 64bit Direct download

Installation–initial Setup
    1. Download & Extract MongoDB anywhere.
    2. Rename & Copy folder structure to C: \ Drive.
    3. Like, C:\mongodb165
    4. Add folder
      C:\mongodb165\Data
      and
      C:\mongodb165\Logs
    5. ADD log file mongolog.txt here at,
      C:\mongodb165\logs\mongolog.txt
MongoDB Windows Service Installation
    1. Go to C:\mongodb165\bin
    2. Run mongod.exe with given parameters 
      mongod--install--auth-- Rest–master–logpath=c:\mongodb165\ logs\mongolog.txt
    3. Edit Registry Settings, run   regedit  from Start menu.
    4. Go to 
      HKEY_LOCAL_MACHINE >> SYSTEM >> CurrentControlSet >> Services
    5. Find out Mon Godb directory & edit  imagepath  key
    6. Set value as 
      c: \ Mongodb165\bin\mongod--service --rest --master --logpath=c:\mongodb165\logs\mongolog.txt - -dbpath=c:\mongodb165\data
    7. Save and Exit Registry Editor.
    8. Open componentservices from Start >> Run
    9. Click on Services (Local) & Find out MongoDB service
    10. Start the service as described below.

    11. Check at http://localhost:28017/ to See, MongoDB should return stats.

It is the advisable to the edition of MongoDB if you are running 64bit OS.
32bit system has it ' s own limitations.

Comments is welcomed!!!

[Go] Modify the registry to add MongoDB to system services

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.