Record MongoDB learning to be lazy to own up to MongoDB server
It's going to be a command, though.
Brew Install MongoDB
But considering the future application or put on the Internet, directly with the ready-made service bar
Download the client (Robomongo is multi-platform, open source free, windows,mac,linux have)
http://robomongo.org/
Download not much to say, according to the platform you need to download on the line
Go to mongodblab.com to register a free 500M database.
https://mongolab.com/welcome/
Create a database
The first time you need to create a user, there will be a yellow warning, click on his line.
Client Configuration
Open Robomongo
Create new
Python connects to MongoDB database
Installation
Pip Install Pymongo
>>> Import Pymongo
>>> conn = Pymongo. Connection ("Mongodb://username:[email protected]: 51980/yuliyangdb")
>>> db = conn[' yuliyangdb ']
>>> Db.collection_names ()
[u ' system.indexes ', U ' system.users ', U ' users ', U ' dbtest1 ']
"MongoDB Learning One" environment built under Mac to connect MongoDB UI Client