Installation and configuration of MongoDB stand-alone version

Source: Internet
Author: User
Tags create mongodb install openssl mongodb openssl

Download the relevant installation files for MONGODB based on the operating system first

Download and upload to Linux, unzip

Rename the extracted folder to the monggodb4.0.1 command MV

Configure the necessary folder Mgdata store the running data, mglog the log, Mgbin store the boot file, create bin convenient copy to store Mongodb4.0.1/bin/mongod file

Create Mongodb.log under Mglog (not created automatically according to the path generated by the configuration file)

To create a MongoDB configuration file in Mgbin

The contents of the configuration file are as follows: Fork is true background run

Start the times wrong, this is because the package has been enabled for SSL security encryption, so we need to install the OpenSSL dependent package. This on the official website also has the description, this blog first picture pink box (behind installation Good this start after "" None "end of this sentence still did not disappear, do not know not to install OpenSSL has no relationship, but the installation will not have any impact)

The second error message is because the path of the configuration file is incorrectly written.

Installation dependent, CENTOS7 directly installed

The middle part of the running process is omitted ....... .....

Start again, start and view success as follows:

To view logs:

The listener has been waiting on port 12345.

Installation and configuration of MongoDB stand-alone version

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.