一、通过ifconfg查看自己使用那块网卡在上网

CentOS使用yum install出现PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
一般是eth0

二、cd /etc/sysconfig/network-scripts/

CentOS使用yum install出现PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
查看自己网卡的配置
vi ifcfg-eht0
CentOS使用yum install出现PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
加入NDS1=8.8.8.8
修改ONBOOT=yes

三、service network restart 重启一下网络

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
相关资源
相似解决方案