MongoDB Environment Installation

Source: Internet
Author: User
Tags robomongo

1. MongoDB Installation

I'm using an offline installation,

(1) Download the required version on the official website of MongoDB. I downloaded the mongodb-linux-x86_64-ubuntu1604-3.4.5.tgz.

(2) Download and unzip to the directory to be installed, I downloaded here in the downloads directory:

    1. CD Downloads


Then execute the command and unzip it to the/usr/local file.

    1. sudo tar-zxvf mongodb-linux-x86_64-ubuntu1404-3.2. 4.tgz-c/usr/local


(3) Move to the/usr/local folder to see the extracted MongoDB folder, rename the folder to MongoDB

    1. Cd/usr/local
    1. sudo mv mongodb-linux-x86_64-ubuntu1404-3.2. 4 MongoDB


#进入到最顶层根目录

    • sudo mkdir-pv/mongo/data/{mongodb_data,mongodb_log} #创建文件夹
    • sudo gedit/mongo/data/mongodb_log/mongodb.log #保存退出. Create a log file




    • sudo gedit/etc/mongodb.conf


Write the following information:

    1. port=27017
    2. dbpath=/mongo/data/mongodb_data/
    3. Logpath=/mongo/data/mongodb_log/mongodb.log
    4. Fork=true
    5. Logappend=true
    6. Noauth=true


Save exit.


27017--fork--dbpath=/mongo/data/mongodb_data/--logpath=/mongo/data/mongodb_log/mongodb.log--logappend


(7) using MONGO

    1. Sudo/usr/local/mongodb/bin/mongo




(8) Close MongoDB Service



(9) Restart MongoDB Service

    1. Sudo/usr/local/mongodb/bin/mongod--config/etc/mongodb.conf





2, Robomongo installation

0.9.0-linux-x86_64-0786489.tar.gz

    • CD robomongo-0.9. 0-linux-x86_64-0786489 (if you move to a different directory, add the appropriate directory.) )  


After extracting, save the Robomongo folder in a common software folder, because Robomongo will start directly from this folder.



(3) Start Robomongo

[Python]View PlainCopy
    1. ./robomongo


(4) Create a shortcut


Go to the installation directory, find the Robomongo executable file, first hold down the left hand drag it to the desktop first do not release, and then press ALT, a menu appears, select "Link Here", release and then create a good shortcut on the desktop.

MongoDB Environment Installation

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.