一、配置yum源
vi /etc/yum.repos.d/mongodb-org-2.6.repo
[mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=
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
阅读(1263) | 评论(0) | 转发(0) |