1: Download, unzip, freely put in a place, rename (MongoDB), click into the Mogodb folder, new DBS folder
2: Open command Tool, Cd/xx/mongodb, enter MongoDB
3: Execute at the command line: PWD, and then find the absolute path, for example/users/liu/documents/nodejs/mongodb
4: Execute at command line: Mongod--dbpath "Xxx/abs" (absolute path), for example Mongod--dbpath "/users/liu/documents/nodejs/mongodb/abs", This is the path to the DBS file you started building
5: Reopen a command template, execute command: MONGO (see MongoDB has no boot)
6: Execute command: Show DBS (View database)
7: Execute command: Use XXX (using a database)
8: Execute command: Show collections (see which tables are in the current database)
Now that you have completed the Mogodb launch,
For beginners like me, you can download a GUI-MONGO database operation
Recommended use of Mongohub, the official website has a tutorial, download and installation is very convenient,
Finally, I wish you all a happy study.
Mac computer Installation Mogodb Guide