CentOS6.2 下載安裝配置 MongoDB 3.0.4

來源:互聯網
上載者:User

CentOS6.2 下載安裝配置 MongoDB 3.0.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擴充

CentOS 6 使用 yum 安裝MongoDB及伺服器端配置

Ubuntu 13.04下安裝MongoDB2.4.3

MongoDB入門必讀(概念與實戰並重)

Ubunu 14.04下MongoDB的安裝指南

《MongoDB 權威指南》(MongoDB: The Definitive Guide)英文文字版[PDF]

Nagios監控MongoDB分區叢集服務實戰

基於CentOS 6.5作業系統搭建MongoDB服務

MongoDB 的詳細介紹:請點這裡
MongoDB 的:請點這裡

本文永久更新連結地址:

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.