在记录系统信息过程中发现ipv6地址未生效,修改完成网卡配置文件后,重启network服务,发现报错如下问题:

[root@localhost network-scripts]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@localhost network-scripts]# systemctl status network.service
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since 五 2022-10-28 14:59:11 CST; 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 33258 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=6)

10月 28 14:59:11 localhost systemd[1]: Starting LSB: Bring up/down networking...
10月 28 14:59:11 localhost systemd[1]: network.service: control process exited, code=exited status=6
10月 28 14:59:11 localhost systemd[1]: Failed to start LSB: Bring up/down networking.
10月 28 14:59:11 localhost systemd[1]: Unit network.service entered failed state.
10月 28 14:59:11 localhost systemd[1]: network.service failed.

解决办法

查阅相关文档,发现是由于缺少/etc/sysconfig/network文件导致的。

[root@localhost network-scripts]# touch /etc/sysconfig/network
[root@localhost network-scripts]# systemctl restart network
END

本文标题:Centos7重启network服务时报错status=6

本文作者:宇宙最帅的男人

本文链接:https://lolicp.com/linux/202228457.html

版权声明:转载或者引用本文内容请注明来源及原作者,本文著作权归作者 (宇宙最帅的男人) 所有。

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

最后修改:2022 年 10 月 28 日
如果觉得我的文章对你有用,请随意赞赏