CentOS7 yum 出现 “could not retrieve mirrorlist”
刚安装的CentOS7 使用yum命令出现 could not retrieve mirrorlist xxx
解决办法
- 修改DNS解析
vim /etc/resolv.conf
(设置成114也行)
nameserver 8.8.8.8
search localdomain - 配置
vim /etc/sysconfig/network-scripts/ifcfg-ens33
将ONBOOT=no 改成YES - 重启网络服务
service network restart
1万+

被折叠的 条评论
为什么被折叠?



