新装的系统,没有一些常用命令的rpm包.使用ifconfig,报错
Loading mirror speeds from cached hostfile解决
网上解决方案是换数据下载源,但是,wget命令的rpm也没有
cd /etc/yum.repos.d/
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum -y install wget
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
mv CentOS7-Base-163.repo CentOS-Base.repo
yum clean all
yum -y update
没有wget Loading mirror speeds from cached hostfile
原文:https://www.cnblogs.com/liuyangfirst/p/14058889.html