首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

Centos 装配mongod

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

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

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


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


32位
[10gen]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

热点排行