yum的源出现问题:

下载yum文件,替代原始yum源:
(1)网易yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all //清除缓存
yum makecache //生成缓存
解析:wget -o,使用"-o"参数来指定一个文件名
(2)阿里云yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
此时发现系统未安装wget :
使用wget命令去下载应用时,提示" wget: command not found"。
rmp包安装
安装包下载地址wget安装包下载:地址https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

下载完传到centos服务器上:
#安装
rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm
#核验安装
rpm -qa|grep "wget"
