CENTOS7 resolve the error: Can not find a valid baseurl for repo: base / 7 / x86_6

 

  Da da da ~ command a knock to the thing, given:

Cannot find a valid baseurl for repo: base/7/x86_6

This is wrong because, even without the Internet ah! ! ! ! ! ! ! ! ! ! ! ! !

 solution:

Modify the configuration file 

  1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth33(每个机子都可能不一样,我的是ifcfg-eth33,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes

  2、重启网络:service network restart

Guess you like

Origin blog.csdn.net/persistencegoing/article/details/93617440