解决CentOS7 重启网卡出现Failed to restart network.service: Unit network.service not found.

问题描述

克隆CentOS7 虚拟机后, 修改完/etc/hosts配置文件后, 运行systemctl restart network重启网卡, 出现Failed to restart network.service: Unit network.service not found.

解决

在新版本的系统中, 一些网络脚本已经被废弃了, 如果还需要使用上述命令, 需要重新安装脚本, 运行yum install network-scripts即可

参考

https://www.golinuxcloud.com/unit-network-service-not-found-rhel-8-linux/


版权声明:本文为CPOHUI原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。