Centos7 新增yum源

背景:原来的yum源,无法下载yum包了。新增一个阿里云的(网易163的源失效了,无法使用)

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; Unknown error"

处理方式:

1、切换到目录:cd  /etc/yum.repos.d
2、下载
wget -O Centos-7.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或
curl -o Centos-7.repo https://mirrors.aliyun.com/repo/Centos-7.repo
3、生成缓存 yum makecache 

相关推荐

  1. centos7更换yum

    2024-07-14 16:50:03       20 阅读
  2. centos7更新yum安装docker-ce使用阿里

    2024-07-14 16:50:03       48 阅读
  3. linux CentOS7配置docker的yum并安装

    2024-07-14 16:50:03       31 阅读
  4. centos7 yum更换国内【超简洁步骤】

    2024-07-14 16:50:03       21 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-14 16:50:03       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-14 16:50:03       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-14 16:50:03       58 阅读
  4. Python语言-面向对象

    2024-07-14 16:50:03       69 阅读

热门阅读

  1. 2024年交安安全员考试题库及答案

    2024-07-14 16:50:03       19 阅读
  2. 2024年高校辅导员考试题库及答案

    2024-07-14 16:50:03       25 阅读
  3. VMM、VMI、VIM的简介

    2024-07-14 16:50:03       16 阅读
  4. Python 面试热门问题五

    2024-07-14 16:50:03       22 阅读
  5. TCP流量控制是怎么实现的?

    2024-07-14 16:50:03       24 阅读
  6. C#开发翻译较好的API

    2024-07-14 16:50:03       19 阅读
  7. C语言西蒙说游戏

    2024-07-14 16:50:03       25 阅读
  8. 大厂急招C++,有一个HC

    2024-07-14 16:50:03       19 阅读
  9. Docker:容器内服务访问宿主机中的MySql服务

    2024-07-14 16:50:03       21 阅读