yum install 安装 报错
错误如下:
[root@model-cluster-3 redis]# yum install tar
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Nothing to do
网络没问题:
[root@model-cluster-3 redis]# ping www.baidu.com
PING www.a.shifen.com (220.181.38.149) 56(84) bytes of data.
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=1 ttl=52 time=18.5 ms
64 bytes from 220.181.38.149 (220.181.38.149): icmp_seq=2 ttl=52 time=19.9 ms
解决办法:
输入命令:curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@model-cluster-3 redis]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2523 100 2523 0 0 28965 0 --:--:-- --:--:-- --:--:-- 29337
再次yum install,问题解决。
[root@model-cluster-3 redis]# yum install wget
还没有评论,来说两句吧...