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 天前
【Linux】Linux 常用指令
linux·服务器·ssh
爱喝矿泉水的猛男2 天前
ssh远程访问另一台windows(可扩展到docker环境)
docker·ssh·zerotier
❀͜͡傀儡师2 天前
Docker一键部署Nexus Terminal,高颜值SSH新体验
docker·容器·ssh
qinyia2 天前
WisdomSSH解决因未使用Docker资源导致的磁盘空间不足问题
运维·服务器·人工智能·后端·docker·ssh·github
qinyia2 天前
WisdomSSH如何高效检查服务器状态并生成运维报告
linux·运维·服务器·数据库·人工智能·后端·ssh
LiuYaoheng5 天前
Git配置SSH Key到GitHub的详细教程
git·ssh·github
wa的一声哭了6 天前
Webase部署Webase-Web在合约IDE页面一直转圈
linux·运维·服务器·前端·python·区块链·ssh
哈里谢顿6 天前
~/.ssh/config 作用详解
ssh
没有名字的鬼6 天前
RK3399 SSH连接设置
linux·ssh·rk3399·mobaxterm
小Lu的开源日常6 天前
踩坑日记:为什么Git 突然 Push 不上去了
git·ssh·github