MongoDB installation graphics and text tutorial _mongodb

Source: Internet
Author: User
Tags file copy mongodb

MongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database.

The supported data structure is very loose and is a JSON-like Bjson format, so you can store more complex data types.

MONGO the most characteristic is that he supports the query language is very powerful, its syntax is similar to the object-oriented query language, almost can achieve similar relational database single table query of most functions, and

It also supports indexing of data.

1. Download MongoDB:
MongoDB's download address:https://www.mongodb.org/downloads/

My system is X64, selected Windows64-bit 2008 r2+ version.

installation of 2.MongoDB

1. Unzip the downloaded. zip compression package, create the path C:\Program Files\mongodb, will extract the bin file copy to this folder under

2. Set up the Data folder C:\Program Files\mongodb\data under C:\Program Files\mongodb, then establish db,log two folders respectively,
There are the following folders under MongoDB
C:\Program Files\mongodb\bin
C:\Program files\mongodb\data\db
C:\Program Files\mongodb\data\log
Create a log file under the log folder MongoDB.log, that is, C:\Program Files\mongodb\data\log\mongodb.log

After completing the above work, administrator status run Cmd.exe
> CD C:\Program files\mongodb\bin
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program files\ Mongodb\data\log\mongodb.log "--install--servicename" MongoDB "
here MongoDB.log is the start of the log file,--servicename "MongoDB" service named MongoDB

--------------------------------------
Secondary Time service has been installed successfully, running
>net start MongoDB (open service)
>net Stop MongoDB (stop service)
Uninstall the MongoDB service:
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program" Files\mongodb\data\log\mongodb.log "--remove--servicename" MongoDB " (delete, note not--install)

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.