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

相关推荐
不是万能的豆学长2 天前
OpenShell项目引爆GitHub趋势
ssh·github
指剑2 天前
亚麻云之EC2——安全组与密钥对:SSH 端口怎么开才安全,Permission denied (publickey) 和连接超时排查
java·安全·ssh
杜哥无敌3 天前
连接服务器干活的终端 / SSH 客户端工具大 PK
ssh·1024程序员节·云主机
Linux_cy3 天前
服务器管理工具哪个好用?我用了七八个
运维·服务器·javascript·python·ssh·面板·gmssh
网络小江3 天前
组网第21课:初登交换机——管理平面三板斧
平面·ssh·console·华为交换机
帷幕落秋4 天前
SSH远程管理服务
运维·ssh
风翼靓崽4 天前
ubuntu22.04 rsyslog分离ssh单独日志文件
运维·ssh
fruge5 天前
SSH、RDP、VNC不必各开一个客户端:Next Terminal用Web入口统一管理远程资产和会话记录
运维·前端·ssh
m0_646429978 天前
VS Code Remote SSH 使用 Codex:通过 SSH 转发本地代理
运维·ssh
SoStraw8 天前
没有公网IP怎么远程SSH?设备只装 p2pssh-server,File2File 一键连回去
ssh·内网穿透·远程ssh·webrpc·无公网ip·file2file·p2pssh