当前位置:网站首页>優化yum源之優化base庫
優化yum源之優化base庫
2022-07-20 11:14:00 【四次揮手】
【目的】本身centos的yum源下載服務器在國外。需要進行提高下載速度和穩定性訪問。
(一)進入yum.repom.d目錄中[[email protected] yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# ll
total 32
-rw-r--r--. 1 root root 1664 Apr 28 2018 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Apr 28 2018 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Apr 28 2018 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 Apr 28 2018 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Apr 28 2018 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Apr 28 2018 CentOS-Sources.repo
-rw-r--r--. 1 root root 4768 Apr 28 2018 CentOS-Vault.repo
(二)備份原始文件
[[email protected] yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
(三)創建Centos-Base.repo 文件
[[email protected] yum.repos.d]# touch CentOS-Base.repo
(四)訪問清華源:https://mirrors.tuna.tsinghua.edu.cn/ ,找到centos,點擊旁邊的【問號】
(五)按照幫助進行修改
(六)可以看base有多少可用源
[[email protected] yum.repos.d]# yum repolist
(七)測試是否成功
(before)目前是沒有vim的命令的
(after)
最後提示:complete!
此時輸入vim的命令就可以使用的
[[email protected] yum.repos.d]# vim CentOS-Base.repo.bak
边栏推荐
- [yunyuansheng boy rushes into the Ninth Heaven of IVX platform] 1: project creation of actual ivx-0 code programming experience
- Pikachu靶场-SQL注入-字符型注入(get)过关步骤
- Personal test online examination of operation version Online_ Testck163 2.7.18 powerful online examination module
- 【电子器件笔记1】电阻参数和选型
- Summary of important knowledge points of management
- flex布局
- 使用 PyCharm 设置虚拟环境
- Impala关于ValueTransferGraph一段代码的疑问解答
- JS定时器及Swiper插件
- ROS turtle following (coordinate transformation)
猜你喜欢
Datetimepicker sets the default time range, beyond which it is not optional
Codeforces Round #807 (Div. 2)(A.B.C)
playwright教程(二)适合小白
wet-英语困难户的好选择-控制台翻译
导电滑环的运行温度
TicTacToe three child Lianzhu game (with source code)
[electronic device note 1] resistance parameters and selection
【MySQL数据库】常见知识点总结
Chapter 3 business function development (delete the remarks of market activities)
H5 introduction of Web debugging tools and vconsole
随机推荐
playwright教程 (一)适合小白
GC tuning principle of JVM (14)
Self controlled and next city! Release of the first domestic artiq architecture quantum computing measurement and control system
使用 PyCharm 设置虚拟环境
Using SQL injection vulnerability to practice reading and writing files
C4 学习资料(未完待续)
Incorrect locale setting causes impala crash
Apache Impala 4.0概览
12day
10day
unity性能优化方向
TicTacToe three child Lianzhu game (with source code)
动态调整Impala日志级别
2022/7/16 每日一题(构造)
Impala 2.x的新patch -- IMPALA-6812 Kudu Read Mode
在CDH6.3中单独升级Impala到Apache Impala 3.4
Lifecycle of impala metadata cache
Scala Basics
884. Search arrangement
The nearest common ancestor of binary tree