对CentOS7.6x64_1810系统进行优化(优化repo源)
在阿里源找到对应版本的CentOS替换repo源:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
操作步骤:
- cd /etc/yum.repos.d/
- ls
- 备份 (运维人员操作标准:先备份,再替换):mv CentOS-Base.repo CentOS-Base.repo.bak //把源文件改个名字 备个份
- 在3之前先安装一下wget
- 将默认的国外repo源替换成阿里repo源:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清华大学:wget -O /etc/yu