vi /etc/yum.repos.d/mongodb-org-2.6.repo
[mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
二、安装
yum install -y mongodb-org
三、启动mongod
service mongod start
===============
service mongod stop
service mongod restart
===============
四、验证启动成功
tail /var/log/mongodb/mongod.log
2016-09-04T14:04:21.349+0800 [initandlisten] waiting for connections on port 27017
五、使用mongod
https://docs.mongodb.com/manual/#getting-started
https://docs.mongodb.com/manual/administration/production-notes/