博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[原]Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused
阅读量:4564 次
发布时间:2019-06-08

本文共 3178 字,大约阅读时间需要 10 分钟。

web site : https://opsx.alibaba.com/mirror 

运行后出现下面的Error:

base/7/x86_64/other_db         FAILED                                          http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/4a963ccbdeb4a9246170341539b5f4816d8a55cc59b65e972ce161da4812b78a-other.sqlite.bz2: [Errno 14] HTTP Error 404 - Not FoundTrying other mirror.base/7/x86_64/filelists_db     FAILED                                          http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/dd9bfa9712cb74c7b6698776da1050bc20c71f0dc2a5d9e5a34e292cb739045c-filelists.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"Trying other mirror.base/7/x86_64/other_db         FAILED                                          http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/4a963ccbdeb4a9246170341539b5f4816d8a55cc59b65e972ce161da4812b78a-other.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"Trying other mirror.

解决方法:

step 1)

# cd /etc/yum.repos.d/
# vim CentOS-Base.repo
:%s/$releasever/7.4.1708/g                                ==>替换掉为真实的版本
 
step 2)
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-Base.repo
 
step 3)
运行  yum clean all
        yum makecache
 
[root@controller yum.repos.d]# yum clean allLoaded plugins: fastestmirror, langpacksCleaning repos: base extras updatesCleaning up everythingMaybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed reposCleaning up list of fastest mirrors[root@controller yum.repos.d]# yum makecacheLoaded plugins: fastestmirror, langpacksDetermining fastest mirrors * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.combase                                                                   | 3.6 kB  00:00:00     extras                                                                 | 3.4 kB  00:00:00     updates                                                                | 3.4 kB  00:00:00     (1/12): base/x86_64/group_gz                                           | 166 kB  00:00:00     (2/12): base/x86_64/filelists_db                                       | 6.9 MB  00:00:02     (3/12): extras/x86_64/filelists_db                                     | 596 kB  00:00:00     (4/12): extras/x86_64/prestodelta                                      |  84 kB  00:00:01     (5/12): extras/x86_64/primary_db                                       | 186 kB  00:00:00     (6/12): extras/x86_64/other_db                                         | 120 kB  00:00:00     (7/12): updates/x86_64/prestodelta                                     | 538 kB  00:00:02     (8/12): updates/x86_64/filelists_db                                    | 2.9 MB  00:00:04     (9/12): base/x86_64/primary_db                                         | 5.9 MB  00:00:07     (10/12): base/x86_64/other_db                                          | 2.5 MB  00:00:05     (11/12): updates/x86_64/primary_db                                     | 5.2 MB  00:00:03     (12/12): updates/x86_64/other_db                                       | 478 kB  00:00:01     Metadata Cache Created

 

 

 

转载于:https://www.cnblogs.com/horizonli/p/9553919.html

你可能感兴趣的文章
Fiddler实现移动端手机抓包
查看>>
wps直接打开CVS文件会把长串数字订单号最后4位变为0
查看>>
BPM配置故事之案例8-根据表单数据调整审批线路
查看>>
LeetCode OJ 3Sum 3个整数之和
查看>>
Knockout应用开发指南 第八章:简单应用举例(2)
查看>>
Bootstrap WPF Style,Bootstrap风格的WPF样式
查看>>
Stern-Brocot Tree [HDU 4556]
查看>>
103 Binary Tree Zigzag Level Order Traversal 二叉树的锯齿形层次遍历
查看>>
springboot项目中使用maven resources
查看>>
ubuntu12.04 卸载和安装mysql
查看>>
转:phpStudy for Linux (lnmp+lamp一键安装包)
查看>>
记录项目从无到有
查看>>
博客园文章编辑器【客户端应用程序】V2.0.0发布,命名为51cnblogs
查看>>
C# WPF获取任务栏时间区域的Rectangle
查看>>
DIV+CSS:如何编写代码才能更有效率
查看>>
利用Idea查看类的继承关系图
查看>>
跨进程访问共享内存的权限问题
查看>>
AD管理中心
查看>>
地图定位
查看>>
笑话收集
查看>>