linux yum报错:Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile

来源:csdn博客 分类: 文章浏览史 发布时间:2023-03-26 18:43:00 最后更新:2023-03-26 浏览:210
转载声明:
本文为摘录自“csdn博客”,版权归原作者所有。
温馨提示:
为了更好的体验,请点击原文链接进行浏览
摘录时间:
2023-03-26 18:43:00

linux yum报错:Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile   (CentOS环境安装yum环境)

方案一:

       修改网络配置使服务器可以连接互联网即可解决

方案二:(针对无法连接互联网服务器的解决方案):

      1、挂接本地镜像文件

           1)mount -o loop /dev/cdrom /mnt/

                    若执行mount命令时找不到介质或者mount:no medium found的解决办法详见下一篇文章:

                     https://blog.csdn.net/m0_37571475/article/details/117112040?spm=1001.2014.3001.5502

           2)cd /etc/yum.repos.d/

             3)vi CentOS-Media.repo

              4)yum clean all    

                 yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel    (这里可能有个坑就是第一遍运行又失败了,然后我重启了一下虚拟机,重新mount -o loop /dev/cdrom /mnt/ 一遍然后再次运行成功)

  

php技术微信