• 问题:配置静态ip后发现重启不了网卡
[root@localhost ~]# 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.
  • 首先再次确认了网卡配置是没有问题的,也并没有发现有手误敲错了单词
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=ens33
UUID=f8506572-64e6-4f3d-b4c3-b7b47514f185
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.20.11
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=192.168.20.2
DNS1=114.114.114.114

根据提示输入systemctl status network.service命令后出现如下错误信息:

Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)Active: failed (Result: exit-code) since 三 2021-06-23 22:01:47 CST; 1min 16s agoDocs: man:systemd-sysv-generator(8)Process: 4681 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)CGroup: /system.slice/network.service└─1192 /sbin/dhclient -H mini1 -1 -q -lf /var/lib/dhclient/dhclient--ens33.lease -pf /v...6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 network[4681]: RTNETLINK answers: File exists6月 23 22:01:47 mini1 systemd[1]: network.service: control process exited, code=exited status=16月 23 22:01:47 mini1 systemd[1]: Failed to start LSB: Bring up/down networking.6月 23 22:01:47 mini1 systemd[1]: Unit network.service entered failed state.6月 23 22:01:47 mini1 systemd[1]: network.service failed.

做法如下
和 NetworkManager 服务有冲突,直接关闭 NetworkManger 服务就好了, systemctl stop NetworkManager 。

[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl restart network

发现成功

[root@localhost ~]# ping www.baidu.com             //也能够上网了
PING www.a.shifen.com (36.152.44.96) 56(84) bytes of data.
64 bytes from 36.152.44.96 (36.152.44.96): icmp_seq=1 ttl=128 time=4.74 ms
64 bytes from 36.152.44.96 (36.152.44.96): icmp_seq=2 ttl=128 time=4.84 ms
64 bytes from 36.152.44.96 (36.152.44.96): icmp_seq=3 ttl=128 time=5.00 ms

重启网卡报错Job for network.service failed because the control process exited with error code.相关推荐

  1. jenkins启动报错 Job for jenkins.service failed because the control process exited with error code.

    启动时若提示下述内容,则表示启动失败 Job for jenkins.service failed because the control process exited with error code ...

  2. mysql重启报错b for mysqld.service failed because the control process exited with error code. See “syst

    当我们重启mysql执行systemctl restart mysqld命令或者我们启动mysql服务时执行命令systemctl start mysqld时会出现以下报错:Job for mysql ...

  3. 启动nginx服务报错Job for nginx.service failed because the control process exited with error code.

    nginx使用service nginx restart报错 启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control p ...

  4. Docker启动报错:Job for docker.service failed because the control process exited with error code. See “sy

    本文转载自博客园作者:蜗牛coder,点击前往原文 本机环境是VMware Workstation上安装的CentOS7.然后下载Docker. DOCKER启动失败Job for docker.se ...

  5. Docker启动服务报错Job for docker.service failed because the control process exited with error code

    执行启动命令: systemctl start docker systemctl enable docker 执行第一个命令报错: Job for docker.service failed beca ...

  6. Linux重启网卡报Job for network.service failed because the control process exited with error code. 错误

    重启网卡报Job for network.service failed because the control process exited with error code. 错误 centos7下重 ...

  7. 关于Job for network.service failed because the control process exited with error code.

    重启网络出现报错 Job for network.service failed because the control process exited with error code. See &quo ...

  8. Job for network.service failed because the control process exited with error code问题

    最小化安装了centos7 当配置静态ip的时候,执行 重启网卡的命令 systemctl restart network 但是报了 Job for network.service failed be ...

  9. Job for network.service failed because the control process exited with error code. 的解决办法

    问题描述: 在使用 Ubuntu-16.04.5 系统,由于设置了静态 IP 地址,在重启网卡服务器时,可能会出现 " Job for network.service failed beca ...

  10. cento网络故障:Job for network.service failed because the control process exited with error code. See sy

    报错: [root@localhost ~]# systemctl restart network Job for network.service failed because the control ...

最新文章

  1. 机器学习入门(01)— 感知机概念、实现、局限性以及多层感知机
  2. 源码篇——AsyncTask机制
  3. resin设置jvm参数
  4. qtp:exit 函数
  5. win8 开发之旅(3) --五子棋游戏开发 前奏
  6. Linux IO复用:select、poll、epoll的理解与对比
  7. 玩转SecureCRT 安装
  8. 基于HTML5的WebGL实现的2D3D迷宫小游戏
  9. pyqt5-QFrame边框样式
  10. ORB-SLAM 解读(五) 地图点投影进行特征匹配
  11. 课时5 企业Web服务器现场抓鸡案例分享
  12. 两代人不同的求学之路
  13. 小失误点,不积跬步无以至千里
  14. 魔兽对战平台官网地图《小兵合成》 最强攻略+合成表+隐藏合成+隐藏英雄+
  15. shipyard docker集群问题
  16. 迅雷链:DPoA 与 VRF
  17. 如何关闭AndroidX?
  18. 转专业菜鸡的秋招总结
  19. [复试——大地测量学]第一章节——2022/12/30
  20. 如何利用PS将照片的灰色背景变为白色

热门文章

  1. 服务器系统事件6013,来源为EventLog 事件 ID:6013类型为信息的系统启动时间为XXXX秒的事件解析...
  2. 硬币的一分、二分与五分有收藏价值吗,都是怎样的?
  3. 2021-7-20 指针:强大而危险的灵魂【C++指针的应用---中下】(炉边小坐)
  4. 矢量文字符号文件格式设计
  5. MySQL数据分析-(14)表补充:字符集
  6. 科学究研明表,汉字序顺并不一定影阅响读
  7. 【CSS3盒子模型新样式】boder-box
  8. 书评 《编码: 隐匿在计算机软硬件背后的语言》
  9. Legend of Mir(传奇)官方源码学习1、运行游戏
  10. python可用于数据抓取软件_不懂代码也能爬取数据?试试这几个工具