From d8236068f99d104d7131109cb0d12aa0a737f76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=B7=E6=88=90=E4=BC=9F?= Date: Mon, 9 Dec 2024 15:46:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/deploy/linux.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ```