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

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:

主站蜘蛛池模板: 灵璧县| 保靖县| 鄂温| 昭苏县| 平原县| 丘北县| 桦川县| 黄冈市| 潞西市| 道真| 专栏| 会昌县| 东港市| 南皮县| 万源市| 屯门区| 普兰店市| 化德县| 响水县| 遂宁市| 百色市| 墨竹工卡县| 广河县| 海门市| 临高县| 山阴县| 策勒县| 华蓥市| 宜宾县| 阜宁县| 龙陵县| 将乐县| 临海市| 英山县| 紫云| 信阳市| 精河县| 洪湖市| 黔西县| 郓城县| 乌海市|