Mongodb-installing MongoDB on Linux

Source: Internet
Author: User

1. Download the latest stable version of the installation package.

[Email protected] mongodb]$ wget-c--no-check-certificate https://fossies.org/linux/misc/mongodb-linux-x86_64-3.2.11.tgz

2. Unzip the installation package.

3. Set environment variables.

[Email protected] ~]$ export Path=/home/huey/mongodb/mongodb-linux-x86_64-3.2.11/bin: $PATH

4. Create a Data Catalog.

[Email protected] ~]$ mkdir-p ~/data/db

5. Start the service.

[[email protected] ~]$ mongod--dbpath ~/data/db &[1] 16529[[email protected] ~]$ 2016-11-30t11:01:24.214+0800 I contr OL  [Initandlisten] MongoDB starting:pid=16529 port=27017 dbpath=/home/huey/data/db 64-bit host=huey2016-11-30t11 : 01:24.215+0800 i control  [Initandlisten] DB version v3.2.112016-11-30t11:01:24.215+0800 I control  [ Initandlisten] git version:009580ad490190ba33d1c6253ebd8d91808923e42016-11-30t11:01:24.215+0800 I CONTROL  [ Initandlisten] Allocator:tcmalloc ...

6. Run the MongoDB Shell

Mongodb-installing MongoDB on Linux

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.