Akiraka Akiraka
  • Home
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • Big Data
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • K8S
    • Kubernetes
    • Helm
  • Other
  • Quark
  • Contribute
  • Home
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • Big Data
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • K8S
    • Kubernetes
    • Helm
  • Other
  • Quark
  • Contribute
首页 Linux Centos Centos 8 更换阿里源

Centos 8 更换阿里源

Akiraka 2年前

文章目录

  • 更换为阿里源
  • 生成缓存
  • 查看可用源

更换为阿里源

cd /etc/yum.repos.d
sed -i s@mirrorlist=@#mirrorlist=@g CentOS-Base.repo CentOS-AppStream.repo CentOS-Extras.repo
sed -i s@#baseurl=@baseurl=@g CentOS-Base.repo CentOS-AppStream.repo CentOS-Extras.repo
sed -i s@mirror.centos.org@mirrors.aliyun.com@g CentOS-Base.repo CentOS-AppStream.repo CentOS-Extras.repo

生成缓存

yum clean all && yum makecache

查看可用源

yum repolist enabled
#centos#linux
1
猜你喜欢
  • Jenkins 升级失败
  • Deepin与UOS多屏显示输出问题
  • SonarQube 集成 GitLab 单点登录
  • Linux Centos/Ubuntu/Debain配置账户登录失败锁定策略
  • Linux systemd-resolve占用53端口的解决方法
Akiraka
站长
本人擅长 Ai、Au、Fl、Ae、Pr、Ps 等软件的安装与卸载,精通 CSS、JavaScript、PHP、Python、Shell、Go 等单词的拼写,熟悉 Windows、Linux、Mac、Android、IOS 等系统的开关机!
160
文章
24
评论
73
获赞
Popular Articles
TOP1
Kubernetes(k8s)Helm 部署 EFK 集群
2年前
TOP2
Kubernetes(k8s)helm 搭建 prometheus + Grafana 监控
2年前
TOP3
Container 命令ctr、crictl 命令使用说明
11月前
TOP4
Kubernetes(k8s)Helm 部署 Jenkins 持续化集成部署
2年前
TOP5
Helm 部署 Loki 日志聚合
2年前
Related Articles
Centos/Ubuntu Linux 系统 根目录扩容方法
2年前
Docker-Compose 网络配置
2年前
阿里云Docker加速器
2年前
Jenkins 升级失败
1月前
Nginx 反向代理配置
2年前
Copyright © 2019-2022 Akiraka. 沪18036911号