avatar

刘刚刚的blog

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

  • 首页
  • python
  • 大模型应用
  • 软件/工具导航页
  • 关于
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

Jun 18, 2025

一些开发中使用的 linux运维命令

查看目录下的文件或者文件夹大小 du -d 1 -h 杀死某些服务 pkill -f flask-search lsof -i :5000 | awk 'NR>1 {print $2}' | xargs kill -9

Jun 8, 2025

ollama-大模型的部署与使用

linux curl -fsSL https://ollama.com/install.sh | sh 因为安装过程有使用github相关资源,国内访问会有问题,需要加速。或者使用docker进行安装。各大云平台都有提供docker加速方法。 ollama的所有命令 Available Comman

Feb 5, 2025

Docker的常用命令

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

OLDER

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

NEWER

Docker的常用命令

Recently Updated

  • 使用 claude api遇到的问题
  • 一些开发中使用的 linux运维命令
  • python包管理神器:UV
  • ollama-大模型的部署与使用
  • 为jupyter增加可选的python内核

Trending Tags

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

Contents

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

Using the Halo theme Chirpy