产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] CentOS6.5 Min版本,wget下载出错,求解决

rjf078
铁牌会员
109.00 价值分

rjf078 发表于 2014-07-09 00:59:09
wget下载文件出错,找不到文件。文件地址没有错,可以直接下载。
在安装wget出错,不知道什么问题。

sudo yum -y install wget:
[root@localhost ~]# sudo yum -y install wget
Loaded plugins: fastestmirror, security
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

yum -y install wget:
[root@localhost ~]# yum -y install wget
Loaded plugins: fastestmirror, security
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

yum install wget
[root@localhost ~]# yum install wget
Loaded plugins: fastestmirror, security
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
2014-07-09 00:59:09 1

zcom
银牌会员
1669.33 价值分

试试:
解决方法是:
修改dns配置
vi /etc/resolv.conf
在此文件中最后加入nameserver 8.8.8.8
支持
  支持 (0分)  反对 (0分)
回复  2014-07-09 16:55:06 2

root
银牌会员
1230.00 价值分

国内的可以使用8.8.8.8 但是国内的服务器就使用114.114.114.114吧。
  支持 (0分)  反对 (0分)
回复  2014-07-13 23:22:51 3

amysql
创始人
99530.81 价值分

可以参考楼上两位
  支持 (0分)  反对 (0分)
回复  2014-07-16 16:36:06 4

AMH面板 - 好用高效低占用、安全可靠极稳定

 1  (总1页)
AMH社区列表
用户服务中心