这段话和之前的比较,里面包含了 IP 地址和有效的端口号,并且用户告知了他刚才连接还是OK的,说明此前是没有问题,那么现在出现问题,可以通过telnet [IP] [port] 确认他的端口是否正常打开,如果不能打开,确认下他是否修改了端口或禁止了端口以及远程。
在比如这个问题:
One of the configured repositories failed (CentOS-7 - Base - 163.com), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable base
服务器IP 59.112.43.32 DNS 服务器: 114.114.114.114 执行 yum install gcc 报错 报错信息:One of the configured repositories failed (CentOS-7 - Base - 163.com), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Disable the repository, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable base
我的yum 配置是 xxxx 下面是我ping 163.com 的返回信息: PING mirrors.163.com (59.111.0.251): 56 data bytes 64 bytes from 59.111.0.251: icmp_seq=0 ttl=55 time=1.910 ms 64 bytes from 59.111.0.251: icmp_seq=1 ttl=55 time=3.846 ms 64 bytes from 59.111.0.251: icmp_seq=2 ttl=55 time=1.926 ms