报错,因为国外的yum镜像国内下载不了东西
正在尝试其它镜像。
wget-1.14-18.el7_6.1.x86_64.rp FAILED
http://mirrors.cn99.com/centos/7.7.1908/os/x86_64/Packages/wget-1.14-18.el7_6.1.x86_64.rpm
修改yum为阿里的yum源
yum install wget -y
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
#更新系统软件
yum -y update