解决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/

猜你喜欢

转载自blog.csdn.net/CPOHUI/article/details/103490223
今日推荐