Centos 安装mongod
版本要求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
相关推荐
summerinsist 2020-08-21
87901735 2020-08-19
ningningmingming 2020-07-26
VFCSDN 2020-07-05
87447007 2020-07-04
changecan 2020-11-19
ECSHOP专属建设 2020-11-13
88427810 2020-11-02
步知道 2020-10-27
Junzizhiai 2020-10-10
jackalwb 2020-10-05
小网管 2020-09-03
shiwenqiang 2020-09-14
85251846 2020-09-14
PinkBean 2020-08-11
85407718 2020-08-09
MichelinMessi 2020-07-30