mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Merge pull request #300 from stepbystep2/patch-1
Update 1970-01-01-centos.md
This commit is contained in:
commit
faf955c051
|
|
@ -8,7 +8,7 @@ mirrorid: centos
|
|||
|
||||
该文件夹只提供 CentOS 7 与 8,架构仅为 `x86_64` ,如果需要较早版本的 CentOS,请参考 centos-vault 的帮助,若需要其他架构,请参考 centos-altarch 的帮助。
|
||||
|
||||
建议先备份 `/etc/yum.repos.d/` 内的文件(CentOS 7 及之前为 `CentOS-Base.repo`,CentOS 8 为`CentOS-Linux-*.repo`)
|
||||
建议先备份 `/etc/yum.repos.d/` 内的文件。
|
||||
|
||||
然后编辑 `/etc/yum.repos.d/` 中的相应文件,在 `mirrorlist=` 开头行前面加 `#` 注释掉;并将 `baseurl=` 开头行取消注释(如果被注释的话),把该行内的域名(例如`mirror.centos.org`)替换为 `{{ site.hostname }}`。
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue