注意事项 CentOS 7 网卡重启命令: service network restart CentOS 8 网卡重启命令: nmcli connection reload //让 NetworkManager 重新读取该连接 nmcli c up eth0 //eth0 替换为网卡名称