MongoDB installation and start-up

Source: Internet
Author: User

1. Download the installation package on the MONGODB official website

Https://www.mongodb.com/download-center

Select the installation package that corresponds to your system download

2. Unzip the installation package in the D disk, in order to facilitate later, to the folder naming the time as simple as possible

3. Create a d://mongodb/data/db in your MongoDB

4. Open the cmd command line and enter the following command in CMD in the D:\mongodb/bin file to start the Monggodb

D:/mongodb\bin>mongod--dbpath d:/mongodb\data\db

5.mongodb default, the link port is 27017, if you can open localhost:27017 correctly, it means that it is correct

6. For later convenience, we can set up MongoDB for Windows service, this operation is implemented every time the boot of the MongoDB can automatically start

Create a new folder under Data in MongoDB Log, and then add a file in the log mongodb.log file

Add a mongo.config to the D:/mongodb folder, open the Mongo.config file with Notepad and fill it in

And then cmd to open it as an administrator, into the D:/mongodb/bin directory

Enter the following command Mongod--config D:\mongoDB\mongo.config--install--servicename "MongoDB"

7. Open the CMD input services.msc to view the MongoDB service, click on it to start.

Or you can enter services.msc in the run, or you can view the MongoDB service

Note: In this process, it is safe to open cmd with an administrator every time.

A vue+node+mongodb front and rear login page Https://github.com/GainLoss/vue-node-mongodb

MongoDB installation and start-up

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.