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

相关推荐
唐青枫7 小时前
Linux sshfs 安全挂载远程文件系统 命令详解
linux·ssh
贺贺丿3 天前
Docker4-容器化企业级应用
linux·nginx·docker·云原生·eureka·tomcat·ssh
彦楠3 天前
win通过OpenSSL生成.ssh id_rsa密钥方法
运维·ssh
猫头虎3 天前
[精选] 2025最新生成 SSH 密钥和 SSL 证书的标准流程(Linux/macOS/Windows系统服务器通用方案)
linux·服务器·开发语言·macos·ssh·ssl·ai编程
闲看云起4 天前
如何将多台电脑用统一账户连接服务器
服务器·安全·ssh
心如止水-WTF5 天前
vscode 一直连不上远程,网络是通的,ssh 也能直接登录远程
网络·vscode·ssh
magic_kid_20106 天前
如何将 git 远程 URL 从 https 更改为 ssh
运维·git·ssh
chen_note7 天前
Linux网络信息(含ssh服务和rsync)
linux·运维·服务器·网络·ssh·远程工作·rsync
cpsvps10 天前
香港服务器SSH安全加固方案与密钥认证实践
服务器·安全·ssh
arvin_xiaoting10 天前
#vscode# #SSH远程# #Ubuntu 16.04# 远程ubuntu旧版Linux
linux·vscode·ssh