MongoDB Download Installation

Source: Internet
Author: User
Tags mongodb download mongodb server

MongoDB official: http://www.mongodb.org/

One, the installation under the Windows platform

1. Download MongoDB Database

2, set up the MONGODB program storage directory

After downloading the database, unzip it directly, for example save path to E:\mongo

3, set the data file storage directory

In e-drive resume a DB folder, the path is E:\db, when starting the database, the DataPath parameter points to this directory

4. Start MongoDB Service

Go to cmd console, execute command, E:\mongo\bin\mongod--dbpath=e:\db

The default listening port for the MongoDB server is 27017, and the other default HTTP port is 28017, which indicates that the service started successfully when you see both ports.

5. Set up MongoDB as Windows service boot

Create the E:\mongo\logs\mongodb.log file first, execute the command E:\mongo\bin\mongod--dbpath=e:\db--logpath=e:\mongo\logs\mongodb.log-- Install

6. Verifying Client connections

A new CMD is opened that executes E:\mongo\bin\mongo, and if the MongoDB shell version:@@@@ connecting To:test is returned, then the MongoDB database is connected.

Second, the installation under the Linux platform

Linux installation Monogodb is relatively simple, download MongoDB database, and then directly decompression can.

Ubuntu installation is relatively simple, the next chapter will write some of the specific steps of the MongoDB cluster construction.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MongoDB Download Installation

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.