温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

解决centos 6.3 yum安装软件时找不到镜像问题

发布时间:2020-07-18 05:35:19 来源:网络 阅读:1583 作者:300second 栏目:移动开发

近日,准备给某一客户企业部署nagios监控系统,于是在其IBM服务器上最小化安装了Centos 6.3(64bit),却发现刚安装完的系统yum仓库更新不了。提示报错信息:

[root@nagios-server ~]# yum update –y

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was

14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Error: Cannot find a valid baseurl for repo: base

[root@nagios-server ~]# nslookup mirrorlist.centos.org

;; connection timed out; no servers couldbe reached

到这里发现问题了,域名解析不了,yum的配置文件里指向的域名就识别不了了。重新设置下dns指向。


[root@nagios-server ~]# 
vim /etc/resolv.conf

search 38forsbm

nameserver 8.8.8.8

nameserver 218.85.152.99


[root@nagios-server ~]# 
yum update –y --更新可以使用。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI