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

相关推荐
如若1232 天前
Ubuntu 无 sudo 安装花生壳并实现 SSH 内网穿透:Conda 环境部署、冲突排查与自动启动
linux·运维·ubuntu·ssh·内网穿透
芳草萋萋鹦鹉洲哦3 天前
【git】重新生成并添加 SSH Key(Mac)
git·macos·ssh
午安~婉3 天前
git中http与ssh连接
git·http·ssh
炸膛坦客4 天前
Git 和 GitHub:(七)将本地新建仓库与 GitHub 远程仓库关联起来(SSH)
git·ssh·github
小莫分享5 天前
sshw:用交互搜索和 Web 配置高效管理 SSH Server
linux·运维·golang·开源·ssh
Jerry小杰6 天前
运维神器|单端口搞定多台内网SSH!frp端口复用终极教程
运维·ssh
BD_Marathon6 天前
xshell无法连接上centos7
ssh
吳所畏惧8 天前
宝塔面板Redis密码修改指南:SSH命令修改 vs 面板UI界面修改,哪个更靠谱?
运维·服务器·数据库·redis·缓存·ssh
xuefeiniao8 天前
CentOS + 宝塔服务器偶发 SSH、面板、网站全部无法访问排查记录(PHP-FPM 内存耗尽案例)
服务器·centos·ssh·php
weixin_457340218 天前
ssh 本地链接服务器地址和服务器查看本地地址
运维·服务器·ssh