- MongoDB 4 Quick Start Guide
- Doug Bierer
- 132字
- 2021-08-13 15:25:01
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:
- 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:
- Install the composite package using: sudo yum install -y mongodb-org:
推薦閱讀
- Learning Microsoft Azure Storage
- 計算機應用基礎·基礎模塊
- Dreamweaver 8中文版商業案例精粹
- 數控銑削(加工中心)編程與加工
- 大數據技術入門(第2版)
- 數據產品經理:解決方案與案例分析
- 單片機技術一學就會
- 單片機C語言應用100例
- Statistics for Data Science
- 大數據技術基礎:基于Hadoop與Spark
- Linux嵌入式系統開發
- Unity Multiplayer Games
- 21天學通Linux嵌入式開發
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- 空間機器人智能感知技術