CentOS鏡像網(wǎng)址could not resolve host mirrorlist.centos.org Cannot find a valid baseurl for repo: base/7/
發(fā)布時(shí)間:2024/11/21 14:05:07 作者:Admin 閱讀:25
廣告:
檢查DNS設(shè)置:確保 /etc/resolv.conf 文件中的DNS服務(wù)器條目是可用的
使用CentOS的其他鏡像:編輯你的yum配置文件,將 mirrorlist.centos.org 替換為另一個(gè)可用的鏡像地址。
Yum的配置文件主要有兩個(gè):
主配置文件:/etc/yum.conf
倉(cāng)庫(kù)配置文件:/etc/yum.repos.d/
執(zhí)行命令:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS的其他鏡像 網(wǎng)址
CentOS的其他鏡像網(wǎng)址主要指的是除了官方CentOS鏡像站點(diǎn)之外的鏡像站點(diǎn)。由于官方站點(diǎn)可能因?yàn)榈乩砦恢谩⒕W(wǎng)絡(luò)等問題訪問速度較慢,所以有很多第三方維護(hù)的鏡像可以用來(lái)加速下載和安裝。
以下是一些常見的CentOS鏡像網(wǎng)址:
阿里云鏡像站點(diǎn):https://mirrors.aliyun.com/centos/
清華大學(xué)鏡像站點(diǎn):https://mirrors.tuna.tsinghua.edu.cn/centos/
中國(guó)科技大學(xué)鏡像站點(diǎn):https://mirrors.ustc.edu.cn/centos/
網(wǎng)易開源鏡像站點(diǎn):http://mirrors.163.com/centos/
廣告:
相關(guān)文章