安装wget时出现如下错误:
CentOS7.8 设置网络安装wget
执行 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 得不到回应
1、执行nmcli d命令
CentOS7.8 设置网络安装wget
2、进入/etc/sysconfig/network-scripts/下,找到ens32配置文件:ifcfg-ens32
3、vi ifcfg-ens32,BOOTPROTO设置为dhcp,ONBOOT设置为yes
BOOTPROTO=dhcp
ONBOOT=yes
4、重启network服务:service network restart或者 systemctl restart network均可
5、尝试curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo看能否有回应
6、执行yum -y install wget执行安装
CentOS7.8 设置网络安装wget
至此完成。

参考资料:https://blog.csdn.net/young_foryou/article/details/86547583

相关文章: