MongoDB practice-Installation

Source: Internet
Author: User

Cutting-edge

I plan to learn about nosql recently, so I chose MongoDB. I will not introduce MongoDB here. This series is written as a post-learning assignment. You can write down all the problems you encounter and what you need to pay attention, this makes it easy for you to have a reference in the future, or when other students encounter the same problem, you can refer to it.

I learned how to use Linux as the operating system for MongoDB. On the one hand, MongoDB is good at XXX and XXX in Linux, and I also learned about Linux.

 

InstallPrerequisites

Install liunx (the landlord uses centos 6.0 installed by vm7 in win7 x64. Therefore, the landlord adds the machine's memory to 8 GB)

 

 

 Install

 

1. Download The MongoDB installation package from the Internet. The default download path here is home/downloads (the main author uses chrome to download the package)

 

2. Copy the downloaded file to the home/data/DB folder (you can use the mkdir home/DB command to create or right-click Create folder)

 

 

3. decompress the MongoDB File

Command: Tar zxf MongoDB. tgz

After decompression, we can see a folder with a mongdb-linux-x86_64-2.01

 

 

3. Execute the installation command

Command:./MongoDB/bin/mongod-dbpath = DB

Here, we need to explain how long the folder with the previous name was changed to MongoDB during installation, and a DB folder and log folder were created under the data folder, the two folders and the previous MongoDB folder are brother folders.

 

 

 

Is the interface for successful installation.

 

This is the first installation and first use of liunx by the landlord. It is not understood in many places, but it is also based on the Installation Methods of online users, however, the installation can be successful through the above method.

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.