Install MongoDB Community Edition on Red Hat Enterprise or CentOS Linux — MongoDB Manual https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ Configure the package management system (yum). Create a /etc/yum.repos.d/mongodb-org-4.0.rep
centos7运行yum报如下提示: There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable <repo> To enable custom repositories: yum-config-m
原因是缺少CentOS-Base.repo文件,因为我这台机器wget也不能用,所以我是下载到本地sftp上去的,传输的时候一定要在root用户下,否则会无法启动传输 这是报错的完整信息:Loading mirror speeds from cached hostfile There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription