I. Configuring the Yum package management file
Create file /etc/yum.repos.d/mongodb.repo
If the contents of the 64-bit system file are as follows
Vim/etc/yum.repos.d/mongodb.repo[mongodb]name=mongodb repositorybaseurl=gpgcheck=0enabled=1
If this is a 32-bit system, the contents are as follows
Vim/etc/yum.repos.d/mongodb.repo[mongodb]name=mongodb repositorybaseurl=http://downloads-distro.mongodb.org/ Repo/redhat/os/i686/gpgcheck=0enabled=1
Second, installation MongoDB packages and related tools
When you install the package, you can choose whether to install the current version or the previous one.
1, install the latest stable version, please use the following command
Yum Install-y mongodb-org
2. Install a specific version of MongoDB, specifying that each component package has a separate version number appended to the package name, as in the following example, to install MongoDB 2.6. Version 1
Yum install-y mongodb-org-2.6.1 mongodb-org-server-2.6.1 mongodb-org-shell-2.6.1 mongodb-org-mongos-2.6.1 mongodb-org-tools-2.6.1
Third, MongoDB start, stop, with the system boot
Turn off SELinux
Service Mongod start Mongodbservice mongod stop off Mongodbchkconfig mongod on with system boot
Seoul Mall
Costume collocation
City of words and things
9 signs that your sister has a crush on you.
Breaking through the five myths and the law of beautiful personality
My bag is a little expensive.
This article from "Linux operation and Maintenance" blog, declined reprint!
CentOS installs MongoDB with Yum