官术网_书友最值得收藏!

Package installation

The MongoDB packages available for RHEL/Fedora/CentOS are exactly the same as those described in preceding sections for Debian/Ubuntu. Also, as described earlier, a composite package called mongodb-org that contains all four packages is available. Because RHEL/Fedora/CentOS packages use RPM for packaging, the tool of choice for installation, updating and management of packages is yum (Yellowdog Updater, Modified).

To install MongoDB on RHEL/Fedora/CentOS Linux distributions, proceed as follows:

  1. Create a repository file for yum in the /etc/yum.repos.d directory. The filename should be like this, mongodb-org-X.Y.repo, where X is the major version number for MongoDB, and Y is the minor release. As an example, for MongoDB version 4.0, the current version as of this writing, the filename would be:
    /etc/yum.repos.d/mongodb-org-4.0.repo:

  1. Install the composite package using: sudo yum install -y mongodb-org:

主站蜘蛛池模板: 延庆县| 柘荣县| 溧水县| 毕节市| 鄂州市| 盐池县| 寿光市| 兴山县| 错那县| 疏勒县| 灵台县| 古丈县| 富源县| 漳平市| 海伦市| 吉首市| 页游| 胶南市| 鹰潭市| 龙泉市| 丹阳市| 密山市| 汉川市| 蒙山县| 泰安市| 肇州县| 福鼎市| 河津市| 义马市| 溧水县| 新平| 馆陶县| 永春县| 扬中市| 元阳县| 东至县| 宁波市| 蛟河市| 略阳县| 益阳市| 澳门|