解决centos yum和wget指令都用不了
是否遇到和图中一样的问题 yum和wget指令都无法安装
1、备份系统自带yum源配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.back
2、通过curl下载yum源,需要服务器可以联网
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、运行yum makecache生成缓存
yum makecache
4、更新yum源
yum -y update
5、安装wget
yum install -y wget
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »