虚拟机中安装Centos7

参考博客

安装完了后,想用ifconfig查看IP,但是不行(centos7中没有ifconfig命令),使用ip addr
发现ens33中没有inet这个属性。那么就没法通过IP地址链接虚拟机
解决方法:vi /etc/sysconfig/network-scripts/ifcfg-ens33 主要vi后边有个空格
虚拟机中安装Centos7修改为yes,然后重启网络服务:sudo service network restart 在使用ip addr就可以了

相关文章:

  • 2021-05-21
  • 2021-09-25
  • 2021-12-10
猜你喜欢
  • 2021-09-16
  • 2021-04-01
  • 2021-05-29
  • 2021-12-14
  • 2021-12-17
相关资源
相似解决方案