当前位置: 首页 > news >正文

电脑维护网站模板信阳百度推广公司电话

电脑维护网站模板,信阳百度推广公司电话,域名网站建设方案,网站开发的技术流程图1、问题现象 由于CentOS停止维护,mirrorlist.centos.org网站也关闭不可访问。导致CentOS默认配置的yum.repos.d源也不可用,所以执行yum命令会报“Could not resolve host: mirrorlist.centos.org”错误。具体如下: Could not retrieve mirror…

1、问题现象

    由于CentOS停止维护,mirrorlist.centos.org网站也关闭不可访问。导致CentOS默认配置的yum.repos.d源也不可用,所以执行yum命令会报“Could not resolve host: mirrorlist.centos.org”错误。具体如下:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"


 One of the configured repositories failed (未知),
 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. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, 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 <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

二、解决办法

        通过一下命令,使用新文件替换CentOS原有的CentOS-Base.repo文件,。

#先备份原来的CentOS-Base.repo文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_old#从阿里云下载新文件,替代CentOS-Base.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo#重建yum元数据缓存(大约需1分钟)
yum makecache

   以上完成后,yum命令即可正常使用。

http://www.hengruixuexiao.com/news/27522.html

相关文章:

  • 政府网站建设的重要性台州网站建设推广
  • 青州住房和城乡建设网站河北网站推广公司
  • 想做网站策划怎么做百度有人工客服吗
  • 会议专属网站平台建设报价单广告优化
  • 织梦网站防黑怎么做网站功能优化的方法
  • 网络用户提要求找人帮忙做的网站网站建设推广多少钱
  • 两个域名同一个网站做优化今日重大事件
  • 怎么用建站系统建网站免费seo快速收录工具
  • 柳州做网站哪家好搜收录批量查询
  • 郑州网站建站网站怎么样第三方营销策划公司有哪些
  • 顺德品牌网站建设信息网络营销与直播电商专业学什么
  • 怎么投诉做网站的公司靠谱的影视后期培训班
  • thinkphp做的上线网站网络热词大全
  • 个人域名可以做公司网站么网页模板网站
  • 一个好的网站怎么建设网络公司经营范围
  • 海淀网站建设价格烟台网络推广
  • cloud域名注册网站seo网站系统
  • 商业空间设计调研搜索引擎seo如何优化
  • 惠州网络公司网站建设百度推广官网网站
  • 建网站公司公司qq群推广方法
  • 青岛seo深圳短视频seo教程
  • 手机排行榜2022前十名360优化大师历史版本
  • 机械营销网站建设案例seo外链友情链接
  • 广州市手机网站建设公司正版seo搜索引擎
  • 网站建设 中企动力网络营销推广的方式有哪些
  • 游戏开发工具宁波seo快速优化教程
  • 广州品牌设计公司排名前十强沈阳百度快照优化公司
  • 南昌做微网站微信推广怎么弄
  • 郑州做网站汉狮网络网站制作 网站建设
  • 做任务得得q币的网站百度网站建设