[转]修改注册表将MongoDB添加到系统服务

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

Download MongoDB

You can download MongoDB in two 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 MongoDB 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.

    2011-02-05_19-09-30

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

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

Comments are welcomed !!!

转载于:https://www.cnblogs.com/wingjay/p/3956797.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值