http://blog.didispace.com/liang-kuan-mian-fei-de-you-zhi-yun-fu-wu-mongolabhe-redislabs/
Since recently wanted to add a small forum to the white Cat program information Station, used to communicate the use of slot Z. Continue to target open source projects within the Nodejs range, and choose to use the Nodeclub of the node. JS Professional Chinese community for multiple consideration and selection. On the one hand to support the group of people who continue to work the other hand really like the style of the project. Currently this feature is not completed, due to the need for MongoDB and Redis, but the volume of small sites will not be very large, first consider using a small amount of free services on the cloud, find two very good suppliers Mongolab and Redislabs.
Mongolab
Mongolab offers 500MB of free cloud storage, MONGO is now 3.0.8, registration and use are extremely simple, ideal for projects with little data or in the trial and error phase. For the expansion directly through the purchase of charge space, want to change service providers can also be done through the very easy Import/export helper tool. Here are the steps to use:
The first step is to register your account. Before you can add a MongoDB database (no credit card information required)
Second step, after logging into your account, click Create New
Create a database. When choosing Plan, select the Single-node
option in the tab Sandbox
(only this is free oh, although only 500MB, but for the initial or niche products or play usually enough), finally entered the database name after the completion of the creation. altAlt
The third step is to view the database connection information. Click on the database name you created to view the connection information, as shown in. alt
Fourth, operation of the database. Premises must have MongoDB, can go to the official website under the installation, can also be installed through the brew, this choice too many, we decide it. In the terminal through the command to connect and do some operations, insert two data and do a query.
mongo ds012345.mongolab.com:12345/sample-db -u用户名 -p密码
db.sample-db.insert({"myblog":"http://blog.didispace.com/"});
db.sample-db.insert({"白猫计划咨询站":"http://www.baimaozixun.com/"});
db.sample-db.find();
can be obtained similar to the following two sentences output, insert success:
{"_id": ObjectId ("568f1ed6c5e381527076a4d3"), "MyBlog": "http://blog.didispace.com/"}
{"_id": ObjectId ("568f1fbfc5e381527076a4d4"), "White Cat Program Information Station": "http://www.baimaozixun.com/"}
This two data can also be seen in the View Administration page:alt
MongoDB is ready to complete.
Redislabs
The famous Redis author Antirez for this company, it provides free space for 30MB, and so on what, register account open to dry!
- Login to the account and select "New Redis Subscription" on the control page. alt
- Select the "Free" version. alt
- Fill in the ResourceName and access password, "Activate" to complete the registration. alt
- View the configuration information, note that the red part is required for the connection
host
and port
alt
- Test connection
Redis-cli-h- host
Pport
Recommended two free premium cloud services Mongolab and Redislabs