问题:
运行 yum 命令时,会出现下面的报错
File contains no section headers. file: file:///etc/yum.repos.d/mongodb-3.4.repo, line: 2 'ngodb-org
解决方法:
1.根据上面报错描述的。查看/etc/yum.repos.d/mongodb-3.4.repo,第二行,可以看到书写不规范的地方,修改了重新下载依赖就好了
运行 yum 命令时,会出现下面的报错
File contains no section headers. file: file:///etc/yum.repos.d/mongodb-3.4.repo, line: 2 'ngodb-org
1.根据上面报错描述的。查看/etc/yum.repos.d/mongodb-3.4.repo,第二行,可以看到书写不规范的地方,修改了重新下载依赖就好了