Linux on the MongoDB installation deployment

Source: Internet
Author: User

① Download the installation package mongodb-linux-x86_64-rhel62-3.6.3.tgz② Decompression: tar zxvf mongodb-linux-x86_64-rhel62-3.6.3.tgz③ Renaming: MV mongodb-linux-x86_64-rhel62-3.6.3/mongodb-3.6.3④ Entry directory: CD mongodb-3.6.3/⑤ New directory:mkdir conf (boot configuration file) mkdir logs (log file) mkdir data (data storage file) at this time the directory structure such as:

⑥ Create a new profile and edit it in the Conf directory: VI mongod.confNote:Dbpath=/home/mongodb/mongodb-3.6.3/data (The Data directory path created)logpath=/home/mongodb/mongodb-3.6.3/logs/mongod.log (log file path created)fork = True (lets the program start in the background)⑦ start the Mongod background process./bin/mongod-f conf/mongod.conf The following log indicates that a successful startup can also be viewed in the data and logs directories, all of which have a ⑧ client connection./bin/mongo 127.0.0.1:20017/test The following interface indicates successful connection

Linux on the MongoDB installation deployment

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.