使用yum 出現 Loaded plugins: fastestmirror


  使用yum 安裝是出現 : Loaded plugins: fastestmirror

[root@localhost yum.repos.d]# yum –y install httpd  httpd-devel
Loaded plugins: fastestmirror

 

解決辦法:

1.修改插件配置文件

[root@localhost yum.repos.d]# vim  /etc/yum/pluginconf.d/fastestmirror.conf

[main]
enabled=0   //由 1 改成0 ,禁用該插件
verbose=0
always_print_best_host = true
socket_timeout=3
#  Relative paths are relative to the cachedir (and so works for users as well
# as root).
hostfilepath=timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
#include_only=.nl,.de,.uk,.ie

 

2.修改yum 配置文件

[root@localhost yum.repos.d]# vim /etc/yum.conf

9 plugins=0  //不使用插件

 

3. 清除緩存並重新構建yum 源

[root@localhost yum.repos.d]# yum clean all

[root@localhost yum.repos.d]# yum makecache

 

4. 使用yum 重新安裝

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM