MongoDB is currently the most popular document-based database and one of the representatives of the NoSQL Legion, but the new version of PostgreSQL recently released claims to support NoSQL features and has better performance than MONGO, and interested friends can go and have a look at it and not discuss it here.
To Download the installation package:
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.5.tgz
Extract:
Tar-xvzf mongodb-linux-x86_64-2.6.5.tgz
renamed :
MV mongodb-linux-x86_64-2.6.5 MongoDB
To
set the database directory :
CD MongoDB && mkdir data
To start MongoDB, the 64-bit binary version is not compiled, and MongoDB uses the
27017 port by default:
./usr/local/mongodb/bin/mongod-dbpath=/usr/local/src/mongodb/data-logpath=/usr/local/src/mongodb/mongo.log
Connection MONGO:
./usr/local/src/mongodb/bin/mongo
Well, to here has completed MONGO installation, into the MONGO command line mode, the next article will study MONGO master-slave configuration ~