first download the database on the official website, the official web provides two forms of the database, one is free installation version, one is installed version, this is similar to Apache Tomcat, the installation version has a visual interface to start and close the service, but still prefer to install free, not explained. You can download the corresponding database on the website according to your personal habits. The following is an example of the installation version.
When the download is complete, the database file directory is created.
MongoDB stores the database under the DB directory, but the directory is not created automatically, so we will first create the data catalog manually. Create the Data folder below the downloaded MongoDB folder and create the DB folder in the Data folder.
Start the service, enter the path of MongoDB under the DOS window, enter the bin file
The service of the MongoDB database has been started, the following test, another DOS window, enter the bin path MONGO
So the database is connected.
Simply use it.
View Database
Adding data to the admin database
MongoDB Database Installation