標籤:des http os io ar strong art sp log
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
- Download & Extract MongoDB anywhere.
- Rename & Copy folder structure to c:\ drive.
- Like, C:\mongodb165
- Add folder
C:\mongodb165\data
and
C:\mongodb165\logs
- Add log file mongolog.txt here at,
C:\mongodb165\logs\mongolog.txt
MongoDB Windows Service Installation
- Go to C:\mongodb165\bin
- Run mongod.exe with given parameters
mongod --install --auth --rest –master –logpath=C:\mongodb165\logs\mongolog.txt
- Edit registry Settings, run regedit from Start menu.
- Go to
HKEY_LOCAL_MACHINE >> SYSTEM >> CurrentControlSet >> services
- Find out MongoDB directory & edit ImagePath key
- Set value as
C:\mongodb165\bin\mongod --service --rest --master --logpath=C:\mongodb165\logs\mongolog.txt --dbpath=C:\mongodb165\data
- Save and exit registry editor.
- Open ComponentServices from Start >> Run
- Click on Services(Local) & find out MongoDB service
- Start the service as described below.
- 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 !!!
[轉]修改註冊表將MongoDB添加到系統服務