blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

CentOS7 系统配置国内 yum 源和 epel 源

发表于 2019-03-13 | 分类于 运维 | 0 | 阅读次数 463

备份并打包原 repo 源到/home 然后删除

zip /home/centos7-repo.zip /etc/yum.repos.d/*
rm -rf /etc/yum.repos.d/*

centos-zip-repo

添加阿里 repo && epel 源

wget -O /etc/yum.repos.d/CentOS-Base-aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel-aliyun.repo https://mirrors.aliyun.com/repo/epel-7.repo

centos-add-aliyun-repo

清除系统yum缓存,并重新生成新的yum缓存

yum clean all && yum makecache

centos-yum-clean-all-and-yum-makecache

查看系统可用的yum源和所有的yum源

yum repolist enabled

centos-yum-repolist-enabled

以上操作也能解决重复源问题 yum repository is listed more than once

centos-yum-repository-base-is-listed-more-than-once

DONE

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/03/13/1552461134547
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
centos7 yum 安装 docker-ce & docker-compose
yum 快速安装官方MySQL 并创建用户配置权限
© 2023 blank
Everything is energy and everything has a frequency