Mac computer Installation Mogodb Guide

Source: Internet
Author: User
Tags abs

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.