yum -- Failed connect to mirrors.aliyuncs.com:80; No route to host

yum在配置完阿里的地址后出现 Failed connect to mirrors.aliyuncs.com:80; No route to host

在这里插入图片描述

解决方法

方法一
# vi /etc/resolv.conf
 
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 114.114.114.114
方法二

curl -o /etc/yum.repos.d/xxxx.repo http://mirrors.aliyun.com/repo/Centos-7.repo

发布了87 篇原创文章 · 获赞 28 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/shuzishij/article/details/103048762