CentOS6.2 下载安装配置 MongoDB 3.0.41.下载地址:wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.4.tgz2.解压安装 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.conf4.启动成功about to fork child process, waiting until server is ready for connections.forked process: 30406child process started successfully, parent exiting5.常见问题
- ERROR: child process failed, exited with error number 1
尝试给dbpath和logpath绝对路径,确保子进程有权限写入。
更多MongoDB相关教程见以下内容:CentOS 编译安装 MongoDB与mongoDB的php扩展 http://www.linuxidc.com/Linux/2012-02/53833.htmCentOS 6 使用 yum 安装MongoDB及服务器端配置 http://www.linuxidc.com/Linux/2012-08/68196.htmUbuntu 13.04下安装MongoDB2.4.3 http://www.linuxidc.com/Linux/2013-05/84227.htmMongoDB入门必读(概念与实战并重) http://www.linuxidc.com/Linux/2013-07/87105.htmUbunu 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.htmNagios监控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 的下载地址:请点这里
本文永久更新链接地址