问题描述
克隆CentOS7 虚拟机后, 修改完/etc/hosts配置文件后, 运行systemctl restart network重启网卡, 出现Failed to restart network.service: Unit network.service not found.
解决
在新版本的系统中, 一些网络脚本已经被废弃了, 如果还需要使用上述命令, 需要重新安装脚本, 运行yum install network-scripts即可
- network service 网卡 CentOS7 restartnetwork service网卡centos7 systemctl centos7 restart network 网卡networking centos7 centos 静态centos7 service network because control network service services network 0x02 x 网卡networking centos failed network service centos stream unreachable centos7 network centos network service方法could