Centos7使用yum报错"Could not resolve host: mirrorlist.centos.org" 原因:本机无法连接网络的网络设置 1.切换到/etc/sysconfig/network-scripts/目录下,打开“ifcfg-en…”文件: [root@node1 ~]# cd /etc/sysconfig/network-scripts/ 2.修改动态配置 BOOTPROTO=dhcp ONBOOT=yes 3.重新启动网络服务: [root@node1 ~]# systemctl restart network