Note: This article installs the system for mac,windows and other systems to download the corresponding installation package, the installation procedure is approximately the same.
1. Download MongoDB installation package on the Internet, official website
2. Place the downloaded installation file in the specified directory, example user/computer name/folder name ...
3. Unzip the installation package and, if you want to rename it, copy the extracted files to the new folder after creating the new folder.
4. Open the terminal into the unpacked installation package directory (MONGODB), example CD user/computer name/.../mongodb
6. Go to the installation file in the Bin directory.
7. Execute the Mongod file, specifying the data storage path. Example./mongod–dbpath + data store path
8. Open the new terminal window and execute the./mongo
OK finish
An error has been encountered during the period, that is, the wrong address is bound and the error is
Cannot connect to MongoDB errno:61
The workaround is to re-perform step 6 to check that the path is correct.
MongoDB Database Installation