Installing MongoDB Steps

Source: Internet
Author: User

1, the first step is to download from the official website to match their operating system installation files or compressed files;

2, just find a folder to unpack the installation files, and then in the C packing directory to create a new folder named MongoDB;

3, will open the file just installed, the Bin folder copy to the C-packing directory of the MongoDB folder;

4, in the D disk to build a MongoDB folder, in the folder to build data and log folder, respectively, the Data folder under the DB folder as a database file storage location, under the log folder to create a Mongod.log file;

5, the start of MongoDB can be configured to the system environment, so that directly in the command line can be used;

6, open the command line, enter Mongod--dbpath D:\mongodb\data\db, connect the database to the data file storage;

7, open a new DOS window, direct input MONGO, will start to connect;

8. Add MongoDB as a window service, enter Mongod--dbpath D:\mongodb\data\db--logpath D:\mongodb\log\mongodb.log--logappend on the command line-- ServiceName MongoDB--auth--install

9. Directly open the command line for administrator rights to enter net start MongoDB Open service

Installing MongoDB Steps

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.