Installs MongoDB based on CentOS 6.5
1. Add the MongoDB installation source
vim /etc/yum.repos.d/mongodb-enterprise.repo
Write the following configuration items to the file
[Mongodb-enterprise]
name = MongoDB Enterprise Repository
baseurl = https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/stable/$basearch/gpgcheck = 0
enabled = 1
2. Install MongoDB with yum
yum install mongodb-enterprise
3. Set the MongoDB process to boot
chkconfig mongod on
Detailed information:
1. Install mongodb-enterprise, will install the following packages
mongodb-enterprise-server, including Mongod process, configuration files and initialization scripts;
mongodb-enterprise-mongos, including mongos process;
mongodb-enterprise-shell, including mongo shell process;
MongoDB-Enterprise-tools, including mongoimport bsondump, mongodump, mongoexport, mongofiles , mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and mongotop tools;
After 2.yun MongoDB configuration file is /etc/mongodb, initialization script /etc/rc.d/init.d/mongod;
3. Install other versions of MongoDB, such as installing version 2.6.1
yum install mongodb-enterprise-2.6.1
Recent Comments