1、由于经常通过yum命令从网上下载东西,但默认是从国外下载会很慢,这里建议大家使用阿里源),下面是对Centos 7 mini配置阿里源的方法。
2、下载所需要的repo
http://mirrors.aliyun.com/repo/Centos-7.repo
3、进入系统的/etc/yum.repos.d/
![](https://img.haomeiwen.com/i5875695/bbab3db402efe72c.png)
4、备份默认的CentOS-Base.repo
![](https://img.haomeiwen.com/i5875695/25141be0fdf6b047.png)
5、将下载的文件上传到该目录下
![](https://img.haomeiwen.com/i5875695/2d875a8a6bde15f8.png)
6、修改名字
![](https://img.haomeiwen.com/i5875695/7f1ce2b4c0ae291b.png)
7、生成缓存
![](https://img.haomeiwen.com/i5875695/921e9d6b3f4c96ba.png)
![](https://img.haomeiwen.com/i5875695/cf4ed9abe93e3a6f.png)
8、更新系统测试
![](https://img.haomeiwen.com/i5875695/1fa17a6ed974f950.png)
1、由于经常通过yum命令从网上下载东西,但默认是从国外下载会很慢,这里建议大家使用阿里源),下面是对Centos 7 mini配置阿里源的方法。
2、下载所需要的repo
http://mirrors.aliyun.com/repo/Centos-7.repo
3、进入系统的/etc/yum.repos.d/
4、备份默认的CentOS-Base.repo
5、将下载的文件上传到该目录下
6、修改名字
7、生成缓存
8、更新系统测试
本文标题:CentOS 7 mini版使用阿里源
本文链接:https://www.haomeiwen.com/subject/nozlkxtx.html
网友评论