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 重启