when learning node recently, you have to learn the MongoDB database and record the installation process according to your own understanding .
1. Download the installation fileMongoDB's official website is: Http://www.mongodb.org/MongoDB The latest version of the download on the official website of the Download menu: Http://www.mongodb.org/downloads and then install the same as QQ installation Default to C drive.
2. Create a database folderLocate the Bin folder of the installation path here, in the bin's sibling directory to establish the DB folder, this folder is the future database file storage path, Bin is MongoDB's installation directory, you can understand that its messy things are in the bin operation of the line
3. Open the CMD window and then CD to the MongoDB Bin directoryFor example: >CD C:\Program Files\mongodb\server\3.3\bin then is to the bin command environment input Mongod--dbpath "C:\Program files\mongodb\server\ 3.3\db "Enter here to say Mongod--dbpath inside is two horizontal behind the path is the string with the English quotation mark back after the good PA take a bunch of things and then look at your bin's sibling directory in the DB directory is there a bunch of files that means success.
4 Browser verifies database successIn the browser input http://localhost:27017/then there will be a hint if you see it looks like you're trying to access MongoDB over HTTP on the native driver P Ort. That's a yes.
then this cmd window does not close!! Remember not to close, this window can stay until the end of the world!! Re-open a cmd window!!
5 entering the new MONGO command environmentNew CMD window input MONGO because the database is on, you need to command the environment now, and then there's a bunch of popping things that show up in the environment, and then you can use the command line to create the database.
Simple installation of MongoDB