问题描述:使用yum install git命令安装Git时出现Loaded plugins: fastestmirror Determining fastest mirrors,并且一直卡在这个地方,很长时间没有变化,后续等了很长时间跳过了这个地方,又继续安装服务。
解决办法:fastestmirror是yum的一个加速插件,若一直停留在这个地方说明加速插件有问题,处理办法就是禁用这个插件。
若一直卡在Loaded plugins: fastestmirror Determining fastest mirrors这个地方丝毫没有变化,可按照以下配置进行修改,一共有两处需要修改。
1.终端中使用命令:vi /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=0 //把1改为0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
2.终端中使用命令:vi /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1 #将plugins的值修改为0
installonly_limit=5