CentOS 7.2 Installation MongoDB 3.4.4 free compilation

Source: Internet
Author: User

/root directory:

Get command:

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

Decompression command:

Tar zvxf mongodb-linux-x86_64-3.4. 4. tgz

Move to the/usr/local/mongodb344 directory:

MV mongodb-linux-x86_64-3.4. 4 /usr/local/mongodb344

Under the/usr/local/mongodb344 directory:

To configure MongoDB:

mkdir Mongodb_database
Go to mongodb_database directory: CD mongodb_database
mkdir datamkdir Logmkdir Confmkdir Bin
CP Bin/mongod bin/

Enter the Conf directory to write the configuration file:

CD conf/vim mongod.conf

Go back to the Mongodb_database directory: CD.
./bin/mongod-f conf/mongod.conf

Cp.. /bin/mongo bin/ . 127.0. 0.1:344

CentOS 7.2 Installation MongoDB 3.4.4 free compilation

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.