Install MongoDB on Linux Systems shorthand

Source: Internet
Author: User
Tags create mongodb install mongodb

Download the Latest Release

>> Curl-o http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz

Extract MongoDB from Archive

>> TAR-ZXVF mongodb-linux-x86_64-2.4.8.tgz

Optional. Copy MongoDB to Target Directory

>> Mkdir-p MongoDB
>> cp-r-N mongodb-linux-x86_64-2.4.8/mongodb

Optional. Configure Search Path to ensure the downloaded binaries is in your path, you can modify your path and/or create SYMB Olic links to the MongoDB binaries in Your/usr/local/bin directory (/usr/local/bin are already in your PATH).   You can find the MongoDB binaries in the bin/directory within the archive. Create MongoDB user >> Groupadd mongodb >> useradd-g mongodb mongodb Create dbpath

>> mkdir-p/data/db

>> chown mongodb/data/db starting mongod without any arguments starts a MongoDB instance this writes data to THE/D ata/db directory.   To specify a alternate data directory, start Mongod with the--dbpath option: >> mongod--dbpath/data/db Stop MongoDB to stop the Mongod instance, press Control+c in the terminal where the Mongod instance is running Mongod b The Web user interface on the port more than 1000 of the port of MongoDB service, you can access to the MONDODB Web user interface.   For example: If your MongoDB run port uses the default of 27017, you can access the Web user interface in port number 28017. MongoDB Learning Tutorial: http://www.w3cschool.cc/mongodb/mongodb-tutorial.html

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.