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
This article from "Linux Network Service Build" blog, declined reprint!
MongoDB Service Deployment