Traditional relational databases are used in the past, but nowProgramThe requirement is getting higher and higher, and the data volume is getting bigger and bigger, regardless of the program or database requirements are getting higher and higher.
The latest nosql is very popular, so I will join in to learn about it.
I found many nosql databases on the Internet, but I still talk about MongoDB a lot.
Download: MongoDB database.
:Http://www.mongodb.org/downloads
Here, we have a version for downloading my own server. I have downloaded a 64-bit Windows server. My system is win 2008 R2 64x.
Installation: MongoDB Database
After downloading and decompressing the package, I decompress the package to drive F:/MongoDB.
F:/MongoDB/bin is the database operation function program provided by MongoDB.
In F:/MongoDB, you can create a new data folder to store the database.
Run:
Enter F: \> MongoDB \ bin \ mongod -- dbpath F: \ MongoDB \ data
MongoDB \ bin \ mongodIs to start the database service program.
-- Dbpath F: \ MongoDB \ dataPoint to the location where the database is stored (which can be modified ).
The database ports and web ports described in the last two lines are 27017 and 28017 respectively. OpenHttp: // localhost: 28017
We can see that
You are trying to access MongoDB on the native driver port. For HTTP diagnostic access, add 1000 to the port number
.
In this way, the startup is successful.
Operation:
Run -- "CMD and input F: \> MongoDB \ bin \ Mongo
MongoDB \ bin \ MongoIs the customer's data operation program.
This is the MongoDB installation process. Hope to help you!