Linux MongoDB Installation

Source: Internet
Author: User

Linux MongoDBinstallationPreface:

Official Reference manual: https://docs.mongodb.org/manual/?_ga=1.41355425.2024551820.1440643898

You can also download the corresponding PDF version, or find the Chinese version online (mongodb_ authoritative Guide _ Chinese version), find the Linux platform installation introduction

1. Installation Environment centos-5.10-x86_64

2. MongoDB server-side version: mongodb-linux-x86_64-3.0.6

steps:1.      Unpacking the installation package

2.      installationMongodb

MongoDB package Inside is already the mutation good command, Direct copy installation can be

View all the command collections

3.      SetMongodbthe environment Variables

set the MONGODB environment variable in /etc/profile, add

4.      setting the data file storage directory

5.      setting the log file storage directory

6.      To Create a startup configuration file

7.      AddMongodbas aLinuxService Random Start

add in file /etc/rc.local

8.      Manual StartMogodbServer

default port:27017 , external connection note Firewall-to-port restrictions

9.      Client Connection test:

Server Setup Complete

10.              Advance UseMongodbClient Version (Windows)


Linux MongoDB 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.