81971834 2012-02-17
版本要求CentOS6/5.7andRedHat(RHEL)6.1/6/5.7
如果64位安装出错尝试用32位的
/etc/yum.repos.d/10gen.repo
64位
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0
32位
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 gpgcheck=0
yum install mongo-10gen mongo-10gen-server
编辑配置文件/etc/mongod.con
logpath=/var/log/mongo/mongod.log port=27017 dbpath=/var/lib/mongo
service mongod start
开机启动
chkconfig --levels 235 mongod on