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

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:

主站蜘蛛池模板: 绥芬河市| 玉林市| 湾仔区| 基隆市| 南安市| 奉化市| 榆树市| 阜城县| 吉隆县| 柳江县| 蒙山县| 广州市| 泰兴市| 巍山| 宕昌县| 北碚区| 淮阳县| 丽水市| 滦平县| 双流县| 金堂县| 龙里县| 灯塔市| 蕲春县| 前郭尔| 成武县| 西贡区| 景东| 二手房| 平阳县| 团风县| 渝北区| 班玛县| 安国市| 漠河县| 盐边县| 乌拉特中旗| 海晏县| 宣威市| 柘荣县| 大石桥市|