Simple installation of MongoDB

Source: Internet
Author: User

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

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.