CentOS6停止支持有一段时间了,如果你还在用它的话,就需要更新 yum源
代码语言:javascript复制rm -rf /etc/yum.repos.d/CentOS-Base.repo
wget http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo -O /etc/yum.repos.d/CentOS6-Base-itzmx.repo
rm -rf /etc/yum.repos.d/*pel.repo /etc/yum.repos.d/epel-testing.repo
wget http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo -O /etc/yum.repos.d/epel.repo
如果你的centos6连wget都没的话,你可以用winscp打开 /etc/yum.repos.d/目录
把 http://github.itzmx.com/1265578519/mirrors/master/CentOS/CentOS6-Base-itzmx.repo 和
http://github.itzmx.com/1265578519/mirrors/master/EPEL/epel.repo 两个文件下好以后上传上去。
然后再用yum install wget 安装wget
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/101772.html原文链接:https://javaforall.cn