systemd[1]: Failed to start LSB: Bring up/down networking

使用ssh连接虚拟机服务时,连接异常,虚拟机系统centos 7,于是登录虚拟机,查看服务ip,发现配置的静态ip未生效。因此重启网卡systemctl restart network,出现报错,使用systemctl status network查看报错的详细信息,异常信息如下:

复制代码
● 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 Mon 2025-06-23 02:54:56 PDT; 11s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5802 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain network[5802]: RTNETLINK answers: File exists
Jun 23 02:54:56 localhost.localdomain systemd[1]: network.service: control process exited, code=exited status=1
Jun 23 02:54:56 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
Jun 23 02:54:56 localhost.localdomain systemd[1]: Unit network.service entered failed state.
Jun 23 02:54:56 localhost.localdomain systemd[1]: network.service failed.
[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.

报错图片:

解决方法

1.停止和禁用NetworkManager

复制代码
sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
systemctl restart network

2.相关大数据学习demo地址:

https://github.com/carteryh/big-data

相关推荐
三无少女指南17 小时前
WSL2环境下因服务器重装引发的SSH连接问题排查记录
运维·服务器·ssh
久绊A1 天前
指定端口-SSH连接的目标(告别 22 端口暴力破解)
linux·网络·ssh
qinyia2 天前
Wisdom SSH 是一款集成了强大 AI 助手功能的 SSH 工具,助你高效管理服务器。
服务器·人工智能·ssh
半梦半醒*3 天前
ansible中的角色(roles)
linux·运维·自动化·ssh·ansible·负载均衡
来一碗刘肉面3 天前
git中使用SSH的配置
运维·git·ssh
半梦半醒*3 天前
ansible中配置并行以及包含和导入
linux·运维·ssh·ansible·负载均衡
守.护4 天前
云计算学习笔记——Linux系统网络配置与远程管理(ssh)篇
linux·运维·服务器·ssh·linux网络配置
RUNNING123!5 天前
华为eNSP防火墙综合网络结构训练.docx
运维·网络·华为·ssh
从零开始的ops生活5 天前
【Day 42】Shell-expect和sed
linux·运维·ssh·shell·expect
半梦半醒*6 天前
ansible的playbook练习题
linux·运维·服务器·ssh·ansible·运维开发