CentOS 6.9 Installation mongodb3.4.4 binary package

Source: Internet
Author: User

1. Download wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.4.4.tgz

2. Unzip TAR-XF mongodb-linux-x86_64-3.4.4.tgz

3. Copy to the appropriate software installation directory Cp-r-N mongodb-linux-x86_64-3.4.4/install/mongodb

4. Configure Environment variables:

Vi/etc/profile Export path= $ERLANG _home/bin:/usr/local/mysql/bin:/install/mongodb/bin:$PATH

Source/etc/profile

5. Before starting MongoDB, to create a /data/db, because the Mongod process by default Use this path, can also be created, at the start of the time to add the path parameter

Mkdir-p/data/db   Configure permissions, users who start mongod need to have appropriate permissions for this directory



Start: Mongod
  



CentOS 6.9 Installation mongodb3.4.4 binary package

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.