快捷搜索: 王者荣耀 脱发

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

Download MongoDB

You can download MongoDB in two different editions viz. |

Installation – Initial Setup

  1. Download & Extract MongoDB anywhere.
  2. Rename & Copy folder structure to c: drive.
  3. Like, C:mongodb165
  4. Add folder C:mongodb165data and C:mongodb165logs
  5. Add log file mongolog.txt here at, C:mongodb165logsmongolog.txt

MongoDB Windows Service Installation

  1. Go to C:mongodb165in
  2. Run mongod.exe with given parameters mongod --install --auth --rest –master –logpath=C:mongodb165logsmongolog.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:mongodb165inmongod --service --rest --master --logpath=C:mongodb165logsmongolog.txt --dbpath=C:mongodb165data
  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 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 !!!
Download MongoDB You can download MongoDB in two different editions viz. | Installation – Initial Setup Download & Extract MongoDB anywhere. Rename & Copy folder structure to c: drive. Like, C:mongodb165 Add folder C:mongodb165data and C:mongodb165logs Add log file mongolog.txt here at, C:mongodb165logsmongolog.txt MongoDB Windows Service Installation Go to C:mongodb165in Run mongod.exe with given parameters mongod --install --auth --rest –master –logpath=C:mongodb165logsmongolog.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:mongodb165inmongod --service --rest --master --logpath=C:mongodb165logsmongolog.txt --dbpath=C:mongodb165data 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 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 !!!
经验分享 程序员 微信小程序 职场和发展