1. Add a MongoDB installation source
Vim/etc/yum.repos.d/mongodb-enterprise.repo
Write the following configuration entries to the file
[Mongodb-enterprise]name=mongodb Enterprise repositorybaseurl=https://repo.mongodb.com/yum/redhat/$releasever/ mongodb-enterprise/stable/$basearch/gpgcheck=0enabled=1
2. Installing MongoDB with Yum
Yum Install Mongodb-enterprise
3. Set up MongoDB process boot
Chkconfig Mongod on
More information about:
1. Install Mongodb-enterprise, the following packages will be installed
Mongodb-enterprise-server, including Mongod processes, configuration files and initialization scripts;
Mongodb-enterprise-mongos, including the MONGOs process;
Mongodb-enterprise-shell, including the MONGO shell process;
Mongodb-enterprise-tools, including mongoimport bsondump, mongodump,mongoexport, Mongofiles, mongoimport, mongooplog, mongoperf, mongorestore, Mongostat, and mongotop tools;
2.yun MongoDB Post configuration file is/etc/mongodb, initialization script is/etc/rc.d/init.d/mongod;
3. Install other versions of MongoDB, such as install 2.6.1 version
Yum Install mongodb-enterprise-2.6.1
This article is from the "Margin with Wish" blog, please be sure to keep this source http://281816327.blog.51cto.com/907015/1598270
MongoDB Learning Note 1 installs MongoDB based on CentOS 6.5