Installing MongoDB in the Linux environment

Source: Internet
Author: User

Recently useful to MongoDB, by the way to find the previous guide, by the way write an essay, may be useful in the future places.

First step: Download MongoDB Linux version, mongodb-linux-x86_64-3.2.4.tgz (go to official website to download)

Step two: Use SSH tools to upload to Linux. (Baidu Download)

Step three: Unzip the tarball.

Fourth step: Create the data storage directory and log file.

Fifth Step:

into the bin directory of the Unpacked MongoDB folder, execute

/develop/software/: is the storage path for MongoDB

/DEVELOP/PROGRAM_FILES/MONGODB/DATA/DB: Is the data directory you just created

/develop/program_files/mongodb/logs: Is the directory where the log files are stored

Execute mongod command:/develop/software/mongodb-linux-x86_64-3.2.4/bin/mongod--dbpath=/develop/program_files/mongodb/data /db--logpath=/develop/program_files/mongodb/logs--logappend--bind_ip=0.0.0.0--port=27017--fork

Initialization succeeded

Sixth step: Enter the MONGO database.

Installing MongoDB in the Linux environment

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.