Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux
时间:2022-03-10 17:14
Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux?
mongodb-org
mongodb-org-server
mongodb-org-mongos
mongodb-org-shell
mongodb-org-tools
WARNING
With the
introduction of systemd in Fedora 15, the control scripts
included in the packages available in the MongoDB downloads repository are not
compatible with Fedora systems. A correction is forthcoming, see SERVER-7285 for more
information, and in the mean time use your own control scripts
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1
sudo yum install mongodb-org
sudo yum install mongodb-org
sudo yum install 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
exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools
IMPORTANT
sudo service mongod start
sudo service mongod start
sudo chkconfig mongod on
sudo chkconfig mongod on