diff --git a/docs/deploy/linux.md b/docs/deploy/linux.md index 60ba4e0a..e697bb25 100644 --- a/docs/deploy/linux.md +++ b/docs/deploy/linux.md @@ -49,7 +49,15 @@ OpenEuler的安装和Centos差不多,这里不详细说明了,就把几个 ## 系统配置 ### 更新系统(不能访问外网请忽略) - +首先切换系统yum源为国内地址,加快更新速度。 +```bash +sed -e 's|http://repo.openeuler.org/|https://mirrors.ustc.edu.cn/openeuler/|g' \ -e 's|https://mirrors.openeuler.org/|https://mirrors.ustc.edu.cn/openeuler/|g' \ -i.bak \ /etc/yum.repos.d/openEuler.repo +``` +创建索引缓存 +```bash +yum makecache +``` +执行更新操作 ```bash yum update -y ```