ddl1st 发表于 2013-1-16 00:19:03

Centos 安装mongod

版本要求 CentOS 6/5.7 and Red Hat (RHEL) 6.1/6/5.7
如果64位安装出错尝试用32位的

/etc/yum.repos.d/10gen.repo

64位
name=10gen Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64gpgcheck=0

32位
name=10gen Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686gpgcheck=0


yum install mongo-10gen mongo-10gen-server

编辑配置文件 /etc/mongod.con
logpath=/var/log/mongo/mongod.logport=27017dbpath=/var/lib/mongo

service mongod start

开机启动
chkconfig --levels 235 mongod on
页: [1]
查看完整版本: Centos 安装mongod