The MongoDB here is in the Windows environment
Windows installation under:
1.:http://www.mongodb.org/downloads
Recommended download stable version (stable version)
2. Installation
(1): Unzip to C:\mongodb (the path itself can be specified)
(2): Create a storage location for the database files, such as C:\mongodb\data. Note: You must create a storage folder for the database files before you start the MongoDB service, otherwise the command will not be created automatically and cannot be started successfully
(3): Start MongoDB service: Open cmd command line, C:\mongodb\bin>mongod--dbpath=c:\mongodb\data, as follows:
The above indicates that the MongoDB service started successfully. The default port is the 27017,web port is 28017.
You can modify the database port by adding the parameter--port: C:\mongodb\bin>mongod--port 27019--dbpath=c:\mongodb\data
(4): Start the MongoDB client. Open a CMD command-line window again (Note: The window opened above cannot be closed or the service will be closed). Input: C:\mongodb\bin>mongo, or
The user double-clicks the mongo.exe so that it enters the client. (You can also write this at startup: MONGO Ip: Port number such as: MONGO 127.0.0.1:27017). Examples are as follows:
In this case, MongoDB can be used, under test, for example, to view the database:
MongoDB (a): The download and installation of MongoDB