①故障现象
场景:
- 笔者在练习搭建 OpenStack,为了节省资源,使用了三台虚拟机,均是最小化安装
- 因为是新建的虚拟机,需要修改网卡配置及配置 YUM 源,这里使用了阿里云的在线源,但是出现了以下故障
报错代码:
[root@c1 yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: mirrors.aliyun.com; 未知的错误