CentOS 7 设置IP地址无效 在CentOS 7 中使用nmtui命令设置静态ip 地址,重启后无效。 经过排查发现,网卡没有勾选Automatically connect 选项,勾选后,使用systemctl restart network 命令重启网卡,使用ifconfig查看,即可看到成功设置