使用yum方式安装出现下图问题
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/867e2eb651f24822e4eb736ae8d2ae35.png)
网络无问题,能ping通
此时考虑可能是yum源得到问题,我们将yum源做下修改:
来到yum.repos.d路径下,将CentOS-Base.repo更改为CentOS-Base.repo.backup
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
我们需要重新拉取yum源,这里我们用到wget命令,然而:
先将wget的问题解决掉------
yum安装不了,咱们用rpm命令安装wget:
http://www.rpmfind.net/linux/rpm2html/search.php?query=wget(x86-64)
这是之前收藏的一个网站我们从这上面下载即可(=@__@=)
下载好后在指定的目录下(自己选择)上传我们下好的rpm包 【上传命令 rz】进行安装(不要忘了自己上传到哪个路径下!)
rpm -ivh /usr/hadoop/environment/wget-1.12-10.el6.x86_64.rpm
OK 此时使用wget命令:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
最后关键的一步:
cd /etc/yum.repos.d/
mv CentOS6-Base-163.repo CentOS-Base.repo
yum clean all
回到最初的yum安装:
yum -y install openssh-server openssh-clients