RHEL7/CentOS7 Network Service開機無法啟動的解決方案

來源:互聯網
上載者:User

標籤:emc   fail   完成   loop   his   code   view   啟動失敗   man   

RHEL7/CentOS7安裝完成並配置好所有網路相關配置後重啟機器,使用systemctl --failed檢查是否有失敗的服務,發現在network服務啟動失敗,使用systemctl status network查看服務狀態,得到如下錯誤資訊:

 

[plain] view plain copy 
  1. <span style="font-family:Microsoft YaHei;font-size:14px;"># systemctl status network  
  2. network.service - LSB: Bring up/down networking  
  3.    Loaded: loaded (/etc/rc.d/init.d/network)  
  4.    Active: failed (Result: exit-code) since Sun 2014-11-23 22:09:08 EST; 15min ago  
  5.   Process: 597 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)  
  6.   
  7. Nov 23 22:09:07 hdcoe02 network[597]: Bringing up loopback interface:  Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘  
  8. Nov 23 22:09:07 hdcoe02 network[597]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘  
  9. Nov 23 22:09:08 hdcoe02 network[597]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘  
  10. Nov 23 22:09:08 hdcoe02 network[597]: Could not load file ‘/etc/sysconfig/network-scripts/ifcfg-lo‘  
  11. Nov 23 22:09:08 hdcoe02 network[597]: [  OK  ]  
  12. Nov 23 22:09:08 hdcoe02 network[597]: Bringing up interface enp0s25:  Error: Connection activation failed: Connection ‘enp0s25‘ is not available on the device enp0s25 at this time.  
  13. Nov 23 22:09:08 hdcoe02 network[597]: [FAILED]  
  14. Nov 23 22:09:08 hdcoe02 systemd[1]: network.service: control process exited, code=exited status=1  
  15. Nov 23 22:09:08 hdcoe02 systemd[1]: Failed to start LSB: Bring up/down networking.  
  16. Nov 23 22:09:08 hdcoe02 systemd[1]: Unit network.service entered failed state.</span>  

 

 

通過尋找相關文檔,使用如下方法解決了問題:設定開機啟動一個名為NetworkManager-wait-online服務,命令為:

systemctl enable NetworkManager-wait-online.service

 

RHEL7/CentOS7 Network Service開機無法啟動的解決方案

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.