首页 > 系统相关 >CentOS 配置 阿里镜像源

CentOS 配置 阿里镜像源

时间:2022-09-18 17:45:58浏览次数:78  
标签:CentOS repo 阿里 yum wget 镜像

  1. 若未安装wget,安装wget
    yum install -y wget
  2. 获取阿里云镜像repo
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. 更新镜像源
    1 //清除缓存
    2 yum clean all
    3 //生成缓存
    4 yum makecache

     

标签:CentOS,repo,阿里,yum,wget,镜像
From: https://www.cnblogs.com/StudyApe/p/16705304.html

相关文章

  • Jenkins集成Harbor镜像仓库
    一、集成的必要性在之前的项目部署中,使用jenkins将构建好的代码通过publishoverssh插件推送到远程服务器进行部署,然后在远程服务器上进行镜像的构建以及容器的启......
  • 删除本地镜像
    1.查看镜像 2.删除nginx镜像,显示'imageisreferencedinmultiplerepositories' 再看1中IMAGEID为7042885a156a的nginx指向两个repository,所以删除失败了3.这......
  • docker删除镜像报image is referenced in multiple repositories
    删除镜像发现报错,报错如下:[root@test22:58:58~/docker]#dockerrmidd34e67e3371Errorresponsefromdaemon:conflict:unabletodeletedd34e67e3371(mustbe......
  • Centos7 防火墙命令
    一、防火墙的开启、关闭、禁用命令(1)设置开机启用防火墙:systemctlenablefirewalld.service(2)设置开机禁用防火墙:systemctldisablefirewalld.service(3)启动防火墙:system......
  • CentOS安装MySQL5.7
    https://blog.csdn.net/m0_55730189/article/details/126716163MySQL::DownloadMySQLCommunityServer下载MySQLhttps://blog.csdn.net/m0_55730189/article/detail......
  • 树莓派3b+ ubuntu镜像配置国内软件源
    默认选择清华镜像https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/要注意网站说明:Ubuntu镜像使用帮助本镜像仅包含32/64位x86架构处理器的软件包,在ARM(arm64,......
  • 如何在基础镜像中安装指定python版本
    背景由于规范要求要使用指定的镜像版本,但是由于该镜像中的python与我使用的版本有差异,怕引起一些不必要的兼容问题,所以我需要自己按基础镜像基础上安装对应版本的python。......
  • Linux Centos7 grub引导故障
    首先进行grub文件破坏,删除配置文件rm-rf/boot/grub2/grub.cfg    删除需谨慎,实验的话最好去3A搞个虚拟机!init6重启重启之后,在开机加载界面按esc键,选择Trou......
  • CentOS 扩容系统盘&挂载数据盘
    系统盘扩容yuminstall-ycloud-utils-growpartgrowpart/dev/vda1xfs_growfs/宝塔面板挂载数据盘yuminstallwget-y&&wget-Oauto_disk.shhttp://downlo......
  • yum命令出现“Error: Cannot find a valid baseurl for repo: base”解决办法 centos
    yum命令出现“Error:Cannotfindavalidbaseurlforrepo:base”解决办法今天:博主用yum命令也出现了这个问题,详情如下:[[email protected]]#yumlistphpLoad......