通过Mongolab申请免费的MongoDB测试实例

Mongolab目前提供的免费的MongoDB实例供广大用户测试使用,免费实例的限制是最大500MB。

 

mongdblab

 

 

首先到https://mongolab.com 注册一个帐号,之后Login登录, 点击create new

mongdblab1

 

plan中要选择single-node才可以看到free plan的sanbox , cloud provide直接选Amazon AWS

mongodb2

之后点击create new mongodb deployment即可

需要手动创建一个mongodb用户:

mongolab4

 

之后就可以利用该云端mongodb测试实例了:

 

 

例如 使用mongo shell连接


[root@ocm ~]# mongo ds041432.mongolab.com:41432/dbdao -u dbdao -p dbdao
MongoDB shell version: 3.0.3
connecting to: ds041432.mongolab.com:41432/dbdao
rs-ds041432:PRIMARY> 

rs-ds041432:PRIMARY> 
rs-ds041432:PRIMARY> 

rs-ds041432:PRIMARY> db.dbdao.insert({"hello":"world!"});
WriteResult({ "nInserted" : 1 })
rs-ds041432:PRIMARY> db.dbdao.find();
{ "_id" : ObjectId("55672f4076e23efacff7cc07"), "hello" : "world!" }


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *