阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS6.2 下载安装配置 MongoDB 3.0.4

100次阅读
没有评论

共计 1574 个字符,预计需要花费 4 分钟才能阅读完成。

CentOS6.2 下载安装配置 MongoDB 3.0.4

1. 下载地址:wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.4.tgz

2. 解压安装 

tar -zxvf mongodb-linux-x86_64-3.0.4.tgz 

                        mv mongodb-linux-x86_64-3.0.4 mongodb

                        cd mongodb

                        export PATH=<mongodb-install-directory>/bin:$PATH

                        mkdir -p data/db

                        mkdir logs

                        vim ./bin/mongodb.conf</mongodb-install-directory>

内容如下:

port=27017

                                                dbpath=/opt/mongodb/data/db

                                                logpath=opt/mongodb/log/mongodb.log

                                                logappend=true

                                                fork=true

                  :wq 保存退出

3. 启动

 mongod -f  ./bin/mongodb.conf

4. 启动成功

about to fork child process, waiting until server is ready for connections.

forked process: 30406

child process started successfully, parent exiting

5. 常见问题

    • ERROR: child process failed, exited with error number 1
                   尝试给 dbpath 和 logpath 绝对路径,确保子进程有权限写入。
     

    更多 MongoDB 相关教程见以下内容

    CentOS 编译安装 MongoDB 与 mongoDB 的 php 扩展 http://www.linuxidc.com/Linux/2012-02/53833.htm

    CentOS 6 使用 yum 安装 MongoDB 及服务器端配置 http://www.linuxidc.com/Linux/2012-08/68196.htm

    Ubuntu 13.04 下安装 MongoDB2.4.3 http://www.linuxidc.com/Linux/2013-05/84227.htm

    MongoDB 入门必读(概念与实战并重) http://www.linuxidc.com/Linux/2013-07/87105.htm

    Ubunu 14.04 下 MongoDB 的安装指南 http://www.linuxidc.com/Linux/2014-08/105364.htm

    《MongoDB 权威指南》(MongoDB: The Definitive Guide)英文文字版[PDF] http://www.linuxidc.com/Linux/2012-07/66735.htm

    Nagios 监控 MongoDB 分片集群服务实战 http://www.linuxidc.com/Linux/2014-10/107826.htm

    基于 CentOS 6.5 操作系统搭建 MongoDB 服务 http://www.linuxidc.com/Linux/2014-11/108900.htm

    MongoDB 的详细介绍:请点这里
    MongoDB 的下载地址:请点这里

    本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-04/130610.htm

    正文完
    星哥说事-微信公众号
    post-qrcode
     0
    星锅
    版权声明:本站原创文章,由 星锅 于2022-01-22发表,共计1574字。
    转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
    【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
    阿里云-最新活动爆款每日限量供应
    评论(没有评论)
    验证码
    【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中