

CentOS 7 配置阿里镜像源,centos 查看磁盘空间CentOS 7配置Ali图像源1.点击官方提供的相应系统的帮助:2.检查不同版本的系统运行情况:下载源1.安装wgetyum instally wget2.下载CentOS 7的回购文件wgeto/etc/yum . repos . d/CentOSbase......
1.点击官方提供的相应系统的帮助:
2.检查不同版本的系统运行情况:
下载源
1.安装wget
yum instally wget
2.下载CentOS 7的回购文件
wgeto/etc/yum . repos . d/CentOSbase . repo http://mirrors.aliyun.com/repo/Centos7.repo
或者
卷曲o/etc/yum . repos . d/CentOSbase . repo http://mirrors.aliyun.com/repo/Centos7.repo
3.更新图像源
清除缓存:yum全部清除
生成:yum makecache
更改配置文件(非常重要)
1.备份CentOS 7系统附带的yum源配置文件/etc/yum . repos . d/CentOSbase . repo命令:
mv/etc/yum . repos . d/CentOSbase . repo/etc/yum . repos . d/CentOSbase . repo . backup
2.找到yum源的配置路径。
cd/etc/yum.repos.d
3.(此步骤可以省略)检查此目录下的所有文件目录:
限位开关(Limit Switch)
4.打开CentOSBase.repo文件:
vim CentOSBase.repo
或者
vi CentOSBase.repo
5.把文件中所有以http开头的地址都改成https(下图只列出了一部分,不太完善):
6.更新yum:
yum更新
特别声明:以上文章内容仅代表作者本人观点,不代表ESG跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。
二维码加载中...
使用微信扫一扫登录
使用账号密码登录
平台顾问
微信扫一扫
马上联系在线顾问
小程序
ESG跨境小程序
手机入驻更便捷
返回顶部