开发者

Distributed mongo in windows

开发者_如何学Python

How to configure distributed mongodb installation in windows?........


You can install mongodb on Windows as service, for example:

  • download mongodb: http://www.mongodb.org/downloads
  • Unzip into c:\mongo
  • create dir c:\mongo\data
  • create file: c:\mongo\config.txt

    dbpath = c:\mongo\data

    bind_ip = 127.0.0.1

    noauth = true

  • install as windows service from command prompt

    C:> c:\mongo\bin\mongod.exe -f c:\mongo\config.txt --logpath c:\mongo\log.txt --install

  • start service

    C:> net start mongodb

As for distributed installation, there should not be anything Wondows specific. Just follow the documentation (Replication and Sharding) and change your configurations for your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜