1.mongodb Introduction
2.yum Installation
To build a Yum Source:
Vim/etc/yum.repos.d/mongodb-org-3.0.repo
[mongodb-org-3.0]
Name=monogodb Repository
baseurl=http://repo.mongodb.org/yum/rehat/$releasever/mongodb-org/3.0/x86_64
Gpgcheck=0
Enabled=1
Yum Install omongodb-org
MongoDB related files
/etc/init.d/mongod
/etc/mongod.conf
/var/lib/mongodb
Start mongpdb:
echo Never >/sys/kenel/mm/transparent_hugepage/enabled
echo Never >/sys/kenel/mm/transparent_hugepage/defrag
Vim/etc/security/limits.conf
Mongod Soft Nofile 64000
Mongod Hard Nofle 64000
Mongod Soft Nproc 32000
Mongod Hard Nproc 32000
Service Mongod Start
3.Mongo Connectivity and user management
In this machine you can directly run the command MONGO into the MongoDB shell
If the MongoDB listener port is not the default 27017, you need to add--port when connecting
MONGO--port 27018
MONGO--host 192.168.1.120
MONGO--username--password
4.MONGODB User Management
Linux-nosql's MongoDB