查看并设置Linux的IP地址

 1)ip addr         查看ip
  2)cd /etc/sysconfig/network-scripts  调转目录
  3)ls或ll          查看目录
  4)vi ifcfg-ens33     按i键开启修改       修改最后一项ONBOOT=yes  
  5)按ESC键,:wq保存并退出,:q!不保存并退出
  6)shutdown -r now  /  reboot 重启

猜你喜欢

转载自blog.csdn.net/qq_41594146/article/details/84900662
今日推荐