avatar

刘刚刚的blog

采菊东篱下,悠然见南山🦥

  • 首页
  • 大模型应用
  • 常用软件/工具
  • Halo
  • 关于
Home centos切换阿里云Yum源
文章

centos切换阿里云Yum源

Posted 2024-12-27 Updated 2024-12- 17
By Administrator
2~3 min read

centos默认的yum源是国外的,国内使用的时候速度会比较慢,可以选择切换为阿里yum源。


切换Yum源

# 1.下载aliyun yum源repo文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

# 2. 清除缓存
yum clean all

# 3. 把yum源缓存到本地
yum makecache

查看当前的Yum源

yum  repolist

image-20210105225053298

tip:

  1. 如果为线上操作,可以先把系统原有的yum源进行备份

  2. 如果本地想同时用本地yum源,需要额外设置yum源的优先级

运维
运维
License:  CC BY 4.0
Share

Further Reading

Feb 5, 2025

Docker的常用命令

Docker的常用命令 # 镜像列表 docker images ​ # 容器列表 docker ps # 设置镜像源 ​ # 进入容器内部 docker exec -it {容器id} /bin/bash #或者 docker exec -it {容器id} /bin/sh # 查看镜

Dec 27, 2024

centos切换阿里云Yum源

centos默认的yum源是国外的,国内使用的时候速度会比较慢,可以选择切换为阿里yum源。 切换Yum源 # 1.下载aliyun yum源repo文件 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo

Dec 8, 2021

supervior安装及配置

supervior支持多种安装方式,本文介绍了pip安装的方式。

OLDER

一次mac环境下,dango4.2报错的问题

NEWER

Docker的常用命令

Recently Updated

  • 文本切分-语义分割(Semantic Chunking)
  • dify 并发配置优化
  • Typing
  • 大模型返回中json_schema与json_mode的区别
  • Async

Trending Tags

Halo 运维 postgresql 设计模式 linux就该这么学 nas rag odoo python 文本切分

Contents

©2025 刘刚刚的blog. Some rights reserved.

Using the Halo theme Chirpy