问了百度大叔,百度大叔给了我清一色的答案,我跟着做啊,,做啊
然后,并没有什么卵用,我该怎么搞?
这个是搜狐那下下来,我修改后的
然后 yum clean all && yum makecache
激动人心的时刻到了。。。
yum list nginx
结果显示的还是阿里云里面的版本,没有变成搜狐镜像里的版本。。。为何啊!
-------------------------
您好,
小二为您尝试按 http://mirrors.sohu.com/help/centos.html 这里的设置,遇到以下出错信息:
[root@iZ23jyp275rZ yum.repos.d]# yum makecache
Loaded plugins: langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
http://mirrors.sohu.com/centos/7/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.centos.org/centos/7/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
One of the configured repositories failed (CentOS-7 - Addons - sohu.com),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
root@iZ23jyp275rZ yum.repos.d]# yum list nginx
Loaded plugins: langpacks
Available Packages
nginx.x86_64 1:1.8.0-1.el7.ngx nginx
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。