重启网卡报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报错

今天给腾讯云配置弹性IP。并使用多IP。配置好以后。重启网卡失败。。查了很多资料。终于解决。现在给整理出来。

[root@mina0 hadoop]# 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@mina0 hadoop]# journalctl -xe
10月 26 17:15:57 mina0 network[3308]: 正在打开环回接口: [  确定  ]
10月 26 17:15:57 mina0 NetworkManager[679]:   [1509009357.3386] audit: op="connec
10月 26 17:15:57 mina0 network[3308]: 正在打开接口 ens33: 错误:激活连接失败:No suita
10月 26 17:15:57 mina0 network[3308]: [失败]
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 polkitd[680]: Unregistered Authentication Agent for unix-process
10月 26 17:15:57 mina0 systemd[1]: network.service: control process exited, code=exited
10月 26 17:15:57 mina0 systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
10月 26 17:15:57 mina0 systemd[1]: Unit network.service entered failed state.

10月 26 17:15:57 mina0 systemd[1]: network.service failed.

解决:

[root@mina0 hadoop]# systemctl stop NetworkManager
[root@mina0 hadoop]# systemctl disable NetworkManager

然后:重启网卡:

[root@mina0 hadoop]# systemctl restart network
[root@mina0 hadoop]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.36.193  netmask 255.255.255.0  broadcast 192.168.36.255
        inet6 fe80::250:56ff:fe3c:7ac8  prefixlen 64  scopeid 0x20
        ether 00:50:56:3c:7a:c8  txqueuelen 1000  (Ethernet)
        RX packets 28  bytes 8099 (7.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 25  bytes 3749 (3.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:a3:37:cb  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

以上就是我们的操作流程。欢迎大家把遇到的问题分享给我们

腾讯云-阿里云 2折起优惠中 QQ 690624

主题测试文章,只做测试使用。发布者:admin,转转请注明出处:https://www.xp8.net/server/3756.html

(0)
admin的头像admin
上一篇 2019年7月23日 下午11:19
下一篇 2019年7月26日 下午11:52

相关推荐

  • 总结关于文件说明注意点-linux教程

    如果您有服务器咨询问题、购买问题、可以联系我们客服 7271895 690624商祺云-阿里代理、景安代理、西部代理 一、/etc/hosts>man hosts1、作用: 主机名查询静态表;主要用于IP地址与计算机主机名之间的转换。/etc/hosts文件格式,每行表示一个IP地址;每行由三部分构成:IP_address canonical_host…

    服务器运维 2019年1月14日
    00
  • 学派吧-Linux下如何实现C++操作Mysql数据库的详细介绍-linux教程

    由于工作需要抽出一周的时间来研究C/C++访问各种数据库的方法,并打算封装一套数据库操作类,现在奉上最简单的一部分:在Linux下访问MySQL数据库。 想用C++写项目,数据库是必须的,所以这两天学了一下C++操作MySQL数据库的方法。也没有什么教程,就是在网上搜的知识,下面汇总一下。 连接MySQL数据库有两种方法:第一种是使用ADO连接,不过这种只适…

    2019年1月1日
    00
  • CentOS 7上安装Jenkins实例教程分享-学派吧

    如果您有服务器咨询问题、购买问题、可以联系我们客服 7271895 690624 商祺云-阿里代理、景安代理、西部代理 CentOS 7上安装Jenkins Jenkins 安装 步骤1:更新CentOS 7 Linux系统管理员的最佳做法之一是使系统保持最新。安装最新的稳定包,然后重新启动。 123 sudo yum install epel–…

    2019年1月15日
    00
  • 学派吧-Linux/centos中SSH客户端断开后保持进程继续运行配置方法的具体教程

    在云服务器 ECS Linux 系统中,通常我们在执行一些运行时间比较长的任务时,必须等待执行完毕才能断开 SSH 连接或关闭客户端软件,否则可能会导致执行中断。本文介绍几种保障程序在用户退出登录后持续运行的方法。 使用管理终端执行 通过 管理终端 会登录服务器的本地会话(console)口,在该终端执行的程序不会受到 SSH 登录用户退出的影响。具体操作方…

    服务器运维 2018年12月12日
    00
  • 宝塔bt设置ssl以后,bt宝塔后台无法打开的解决方法-学派吧

    宝塔面板是一款不错的控制面板,功能包括一键创建网站、FTP、数据库、SSL;安全管理,计划任务,文件管理,PHP多版本共存及切换;自带LNMP与LAMP不小心在宝塔面板设置里打开了ssl面板,现在无法打开宝塔面板,显示的是The client sent a plain HTTP request, but this server only speaks HTT…

    2019年5月5日
    00

发表回复

登录后才能评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
学派网官网正在升级改造中,如有影响访问,敬请谅解