Installation Instructions
System Environment: Centos-5.5
Installation software: mongodb-linux-x86_64-2.6.3.tgz
: Http://www.mongodb.org/downloads
Installation machine: 192.168.3.206
Upload location:/root/soft
Software Installation Location:/usr/local/mongodb
Data storage location:/data/mongodb/
Log storage location:/data/logs/mongodb/
Installation
Groupadd MongoDB
Useradd mongodb-g MongoDB
Cd/root/soft
TAR-ZXVF mongodb-linux-x86_64-2.6.3.tgz
MV mongodb-linux-x86_64-2.6.3 MongoDB
MV mongodb/usr/local/
cd/usr/local/
Chown-r Mongodb:mongodb MongoDB
CD MongoDB
Mkdir-p/data/mongodb
Mkdir-p/data/logs/mongodb/
Configuration
Add CentOS Boot entry
Vi/etc/rc.d/rc.local
#添加到启动项
/usr/local/mongodb/bin/mongod--dbpath=/data/mongodb/--logpath/data/logs/mongodb/log.log-fork
Start MongoDB
/usr/local/mongodb/bin/mongod--dbpath=/data/mongodb/--logpath/data/logs/mongodb/log.log-fork
This article is from the "Chengdu @ Ah-like" blog, please be sure to keep this source http://azhuang.blog.51cto.com/9176790/1440160
MongoDB installation configuration [one]