MongoDB installation and Configuration installation Services

Source: Internet
Author: User

1. Installing the MongoDB Database

MongoDB Official website: https://www.mongodb.org

After installation, the following steps are played:

The first step: Planning your installation directory and database file storage path, I intend to place MONGO program Files C:\mongodb
, place the database file in D:\Mongodb.

Step two: Put the downloaded file to C:\mongodb

Step three: Create the MONGO log directory and configuration file cmd-> MD C:\mongodb\log
  

//This is to create a mongod.cfg file under the C:\mongodb path using the command line and write to Logpath=c: \mongodb\log\mongo.log information; If you have trouble typing a command line, you can create a file and add text content;

echo Logpath=c:\mongodb\log\mongo.log > C:\mongodb\mongod.cfg

The fourth step: administrator run the following command:

window8.1 start the Administrator command Line window:

    

Open and enter the command:

c:\mongodb\bin> mongod.exe--config C:\mongodb\mongod.cfg--dbpath D:\Mongodb--install

Install the service and specify the default database directory

Fifth step: Start the service: net start MongoDB

Sixth step: see if the service is running:
Command Line input: services.msc
Popup Window's service window Startup: You can find the MongoDB service is running

MongoDB installation and Configuration installation Services

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.