MongoDB Service Deployment

Source: Internet
Author: User


MongoDB installation is really simple, install it once and forget it.


Download URL:http://www.mongodb.org


mongodb relational database and non-relational databases , non-relational databases are the most versatile, most like relational databases. The data structure it supports is very loose and is similar to json bjson format, so you can store more complex data type

Mongo The biggest feature is that the supported query language is very powerful and its syntax is somewhat similar to Object Oriented Query Language, it can almost realize the most functions of a relational database single table query, but also support the establishment of data Index .

MongoDBService Sidecan run onLinux,WindowsorIOSplatform, Support +bits and -bitApplication, the default port is27017. Recommended to run on -bit platform, becauseMongoDBin the +The maximum file size supported by the bit mode runtime is2GB.

Installation process:

[Email protected] ~]# tar-xfmongodb-linux-x86_64-2.6.3.tgz-c/usr/local/

[Email protected] ~]# cd/usr/local/

[[email protected] local]# MVMONGODB-LINUX-X86_64-2.6.3/MONGODB//easy to manage rename

[Email protected] local]# CD mongodb/bin/

in the MongoDB Create a new directory under Data directory to store data, create a new Log directory to store the log, and then create a new log file in the directory to Mongodb.log

[Email protected] bin]# Mkdir/usr/local/mongodb/data

[Email protected] bin]# Mkdir/usr/local/mongodb/log

[Email protected] bin]# Touch/usr/local/mongodb/log/mongodb.log

[Email protected] bin]#/mongod-port 1000--dbpath/usr/local/mongodb/data/-logpath=/usr/local/mongodb/log/ mongodb.log&// Start-up service

[Email protected] bin]# Netstat-nputl | grep1000

TCP 0 0 0.0.0.0:1000 0.0.0.0:* LISTEN 23597/./mongod

[[email protected] bin]# tail-1/etc/rc.local// Add self-starter

/usr/local/mongodb/bin/mongod-port 1000--dbpath/usr/local/mongodb/data/-logpath=/usr/local/mongodb/log/ mongodb.log&

[[email protected] bin]#./mongo localhost:1000// Login Database

    • Exit// quit


This article from "Linux Network Service Build" blog, declined reprint!

MongoDB Service Deployment

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.