[轉]修改註冊表將MongoDB添加到系統服務

來源:互聯網
上載者:User

標籤: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
  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.

  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 !!!

[轉]修改註冊表將MongoDB添加到系統服務

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.