zoukankan      html  css  js  c++  java
  • vamare下centos7.0 动态获取ip报错问题

    CentOS7 Failed to start LSB: Bring up/down解决方法

    centos7.0中service network restart重启报错的问题

    报错信息:

    /etc/init.d/network restart

    Restarting network (via systemctl):  Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

    [失败]

    使用systemctl status network.service命令查看结果如下:

    network.service - LSB: Bring up/down networking

    Loaded: loaded (/etc/rc.d/init.d/network)

    Active: failed (Result: exit-code) since 三 2016-08-17 11:34:36 CST; 54s ago

    Docs: man:systemd-sysv-generator(8)

    Process: 3847 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists

    8月 17 11:34:36 python.cn systemd[1]: network.service: control process exited, code=exited status=1

    8月 17 11:34:36 python.cn systemd[1]: Failed to start LSB: Bring up/down networking.

    8月 17 11:34:36 python.cn systemd[1]: Unit network.service entered failed state.

    8月 17 11:34:36 python.cn systemd[1]: network.service failed.

    查看系统日志,报错如下:

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python network: RTNETLINK answers: File exists

    Aug 17 11:34:36 python systemd: network.service: control process exited, code=exited status=1

    Aug 17 11:34:36 python systemd: Failed to start LSB: Bring up/down networking.

    Aug 17 11:34:36 python systemd: Unit network.service entered failed state.

    Aug 17 11:34:36 python systemd: network.service failed.

    Aug 17 11:36:28 python systemd: Starting LSB: Bring up/down networking...

    1 修改mac地址

    ip addr 找到mac地址,然后修改配置文件中的mac地址

    2 跟虚拟机自带的NetworkManager这个管理套件有关系,关掉就可以解决。

    systemctl stop NetworkManager

    systemctl disable NetworkManager

    systemctl start network.service

  • 相关阅读:
    年终总结 2016-08-28 22:04 422人阅读 评论(26) 收藏
    [mysql]MySQL Daemon failed to start 2016-08-14 21:27 1121人阅读 评论(18) 收藏
    solrr初步了解 2016-07-31 22:29 380人阅读 评论(4) 收藏
    基于spring-boot的测试桩设计--几种常见的controller
    利用Factory-boy和sqlalchemy来批量生成数据库表数据
    job中shell脚本异常(删除不存在容器),导致job被打断执行的问题 脚本优化方法
    利用Factory-boy来生成实例数据
    pytest相关资源收集
    pytest 用 @pytest.mark.usefixtures("fixtureName")装饰类,可以让执行每个case前,都执行一遍指定的fixture
    pytest fixture 利用 params参数实现用例集合
  • 原文地址:https://www.cnblogs.com/fengzhongzhuzu/p/8980679.html
Copyright © 2011-2022 走看看