Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number, default port 27017
--BIND_IP Arg
Document at address: http://download.csdn.net/detail/wyqlxy/3999890
MongoDB is a document-type database, not a relational database. The basic idea is to replace the original "line" concept with a more flexible "document" model. A document-oriented
Cause:
After installing the MongoDB, want to open the page end controller to look, found http://127.0.0.1:28017/_commands this link can not open, the hint rest does not open,
You need to add a configuration at startup--restSolve:
SC Delete
Use $set to specify a value for a key, and if it does not exist, create it. This is useful for updating patterns or adding user definitions.
Db.user.insert ({"Name": "Codingwhy.com"})
This user now only has the name information and now needs to
resolves a MongoDB cursor ID is not a valid at server issue
When you use Db.collection.find (), it returns not all data, but actually a "cursor". Its default behavior is to query the database for the first 101 documents, or 1 MB of documents,
Existing class information table:
Package models;
Import play.modules.mongo.MongoEntity;
Import Play.modules.mongo.MongoModel;
/**
* Created by Adinlead on 17/03/04.
*
/@MongoEntity ("class_msg") public
class Classmsg extends Mongomodel {public
1. Add and verify the user
> Use admin> Db.adduser ("Zjx", "Tsjianxin") #添加用户
> Db.auth ("Zjx", "Tsjianxin")
These add users to the previous version of 2.6, and the 2.6 release adds the user and gives permission: View source print?
1
Data backup:
Open a command prompt and go to the installed MongoDB Bin directory:
The location is as follows:
Input command:mongodump-h 127.0.0.1:27017-d runoob-o D:\mongo\data\dump
which
-H:MONGDB the server address, for example: 127.0.0.1, you
To understand the terms of MongoDB, you can compare it to a relational database:One, document document is a set of key-value pairs. Documents are the basic unit of data in MongoDB, very similar to those in a relational database.Yes. Multiple keys
MongoDB is the hottest NoSQL document database of all time, offering some great features: automatic failover, automatic sharding, modeless schemaless, and, in most cases, great performance. But mint in the deep use of MongoDB process, encountered a
#文档地址 http://api.mongodb.com/python/current/api/pymongo/collection.htmlCollection level of operation:Find_and _modify (Query={},update=none,upert=false,sort=none,full_response=false,manipulate=false,**kwargs)Updates and returns an object that is not
This version still does not solve the problem that dynamic libraries cannot be compiled. What are the nerves of MongoDB?
It turns out that the two bypass methods will not work either.
Only static databases are used.
Download the latest
References: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
The procedure is as follows:
1. Download MongoDB from official website: http://www.mongodb.org/
Because 2.0 has been released, MongoDB 2.0.6 is used here.
2.
When you deploy a MongoDB cluster (replica set), the Key File Permission fails. the startup parameters are as follows:
Mongod -- replset RS1 -- Keyfile/data/K0 -- fork -- Port 27017 -- dbpath/data/rs0 -- logpath =/data/log/r0.log -- logappend
The following articles may expire and can be downloaded at the following address:
Download the latest MongoDB version list http://www.mongodb.org/display/DOCS/Downloads Download the required jar driver package
In the previous blog, I led everyone into the nosql world. If the previous blog is a theory, I would like to show you the true face of mongdb.
MongoDB can be installed on Windows and Linux platforms. Follow these steps to install MongoDB on Windows:
Download
The easiest way to install MongoDB is to use compiled binary files.
Note: We recommend that you use the 64-bit version (although you must use a 64-bit system to run this version ).
Download 32-bit Binaries
Download 64-bit Binaries
Extract
Limits MongoDB memory usage
Because MongoDB's memory is managed by the system's virtual memory, MongoDB does not interfere with memory management. This can simplify Mongo's work, but the memory usage of Mongo cannot be controlled at the same time.Is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service