1.对于yum无法使用,CentOS默认是不打开网络端口的,除非你在安装的时候选择了连接网络,否则你需要自己手动打开。

ifcfg-en开头的就是,每个人可能不一样

Vm上CentOS,ifconfig和yum无法使用

修改ONBOOT为yes

Vm上CentOS,ifconfig和yum无法使用

然后重启网路服务就可以了 service network rstart


2.对于ifconfig无法使用,是因为CentOS没有安装net-tools这个包,需要你自己去安装。

Vm上CentOS,ifconfig和yum无法使用

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-12-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-06
  • 2022-01-25
  • 2021-06-23
  • 2021-07-31
  • 2021-06-04
  • 2021-12-16
相关资源
相似解决方案