===========================
centos7更改ip地址 可以先查询当前网络状态
ifconfig
ip a 进入网络配置文件目录 ls查看目录
cd /etc/sysconfig/network-scripts
ls 编辑对应配置文件
vim ifcfg-ens33 重启网络服务
三种选择使用第一第二都可以
systemctl restart network #重启网卡
service network restart #重启网卡network服务
systemctl enable network #开机启动网卡