centos8 不能重启网络报错原因 Failed to restart network.service: Unit n
[root@centos8 ~]# service network status Redirecting to /bin/systemctl status network.service Unit network.service could not be found. [root@centos8 ~]# systemctl status network.service Unit network.service could not be found. [root@centos8 ~]# systemctl status network Unit network.service could not be found. [root@centos8 ~]# systemctl restart network Failed to restart network.service: Unit network.service not found.
装上centos8后,配置好静态ip,想重启网络发现,之前centos7上的命令都不好使了
报错如上边那样
一查资料发现是由于 centos8 已经替换了原来的network, 新版的叫:NetworkManager
这个工具可了不得,好用的一批,尤其是wifi相关的,
所以用这个命令就可以重启了 systemctl restart NetworkManager
[root@centos8 ~]# systemctl status NetworkManager ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-10-15 22:20:43 CST; 9min ago Docs: man:NetworkManager(8) Main PID: 7299 (NetworkManager) Tasks: 3 (limit: 11357) Memory: 6.8M CGroup: /system.slice/NetworkManager.service └─7299 /usr/sbin/NetworkManager --no-daemon
如果您的问题还未解决可以联系站长付费协助。
有问题可以加入技术QQ群一起交流学习
本站vip会员 请加入无忧模板网 VIP群(50604020) PS:加入时备注用户名或昵称
普通注册会员或访客 请加入无忧模板网 技术交流群(50604130)
客服微信号:15898888535
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若内容侵犯了原著者的合法权益,可联系站长删除。