1.查看yum是否安装成功,输入yum

yum install 报错:Could not retrieve mirrorlist http://mirrorlist.centos.org

2.网卡配置

ONBOOT=YES  配置完重启

3.验证配置resolv.conf是否配置

我们使用vi指令跳转到resolv.conf文件那里: vi /etc/resolv.conf

文件其他内容注释掉,加上

nameserver 8.8.8.8

search localdomain

4.yum可以正常使用

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2021-09-06
  • 2022-01-10
  • 2021-08-28
  • 2022-01-23
猜你喜欢
  • 2021-10-19
  • 2021-06-23
  • 2021-11-03
  • 2021-10-09
  • 2021-10-08
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案