注意事项 CentOS 7 网卡重启命令: service network restart CentOS 8 网卡重启命令: nmcli c reload //载入配置文件 nmcli c up eth0 //eth0 替换为网卡名称 网卡配置文件 网卡配置文件地址: cd /etc