国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

關(guān)于Job for network.service failed because the control process exited with error code.

這篇具有很好參考價(jià)值的文章主要介紹了關(guān)于Job for network.service failed because the control process exited with error code.。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

重啟網(wǎng)絡(luò)出現(xiàn)報(bào)錯(cuò)

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

今天更改完靜態(tài)ip后發(fā)現(xiàn)network服務(wù)重啟不了,翻遍了網(wǎng)絡(luò),嘗試了各種方法,終于解決了。

1.執(zhí)行systemctl restart network.service命令后出現(xiàn)下面的錯(cuò)誤

[root@web01 ~]# 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.

2.按照報(bào)錯(cuò)提示輸入了systemctl status network.service

[root@web01 ~]# 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 日 2022-11-13 11:36:56 CST; 7min ago
 ? ? Docs: man:systemd-sysv-generator(8)
 ?Process: 1298 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
 ?Process: 1457 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
?
11月 13 11:36:56 web01 network[1457]: [ ?確定 ?]
11月 13 11:36:56 web01 network[1457]: 正在打開接口 eth1: 連接已成功激活(D-Bus 活動(dòng)路徑:/org/freed…on/4)
11月 13 11:36:56 web01 network[1457]: [ ?確定 ?]
11月 13 11:36:56 web01 network[1457]: 正在打開接口 eth2: ERROR ? ? : [/etc/sysconfig/network-script…esent.
11月 13 11:36:56 web01 /etc/sysconfig/network-scripts/ifup-eth[1647]: Device name does not seem to be p....
11月 13 11:36:56 web01 network[1457]: [失敗]
11月 13 11:36:56 web01 systemd[1]: network.service: control process exited, code=exited status=1
11月 13 11:36:56 web01 systemd[1]: Failed to start LSB: Bring up/down networking.
11月 13 11:36:56 web01 systemd[1]: Unit network.service entered failed state.
11月 13 11:36:56 web01 systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

3.解決方法

3.1網(wǎng)絡(luò)配置工具network和NetworkManager沖突導(dǎo)致的,NetworkManager一般用于安裝了桌面環(huán)境的Linux系統(tǒng),一般情況下我們直接使用以下明令禁止使用NetworkManager就行了

[root@web01 ~]# systemctl stop NetworkManager
[root@web01 ~]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
[root@web01 ~]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
 ? Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disable; vendor preset: enabled)
 ? Active: inactive (dead) since 日 2022-11-13 11:50:58 CST; 5s ago
 ? ? Docs: man:NetworkManager(8)
 ?Process: 667 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=0/SUCCESS)
 Main PID: 667 (code=exited, status=0/SUCCESS)
?
11月 13 11:36:56 web01 NetworkManager[667]: <info> ?[1668310616.7621] device (eth1): state change: i...ed')
11月 13 11:36:56 web01 NetworkManager[667]: <info> ?[1668310616.7630] device (eth1): state change: s...ed')
11月 13 11:36:56 web01 NetworkManager[667]: <info> ?[1668310616.7654] device (eth1): Activation: suc...ted.
11月 13 11:36:56 web01 NetworkManager[667]: <warn> ?[1668310616.7795] ifcfg-rh: loading "/etc/syscon...eys.
11月 13 11:36:56 web01 NetworkManager[667]: <warn> ?[1668310616.7912] ifcfg-rh: loading "/etc/syscon...eys.
11月 13 11:50:58 web01 NetworkManager[667]: <info> ?[1668311458.4319] caught SIGTERM, shutting down ...lly.
11月 13 11:50:58 web01 systemd[1]: Stopping Network Manager...
11月 13 11:50:58 web01 NetworkManager[667]: <info> ?[1668311458.4325] manager: NetworkManager state ...SITE
11月 13 11:50:58 web01 NetworkManager[667]: <info> ?[1668311458.4343] exiting (success)
11月 13 11:50:58 web01 systemd[1]: Stopped Network Manager.
Hint: Some lines were ellipsized, use -l to show in full.

關(guān)閉之后重啟發(fā)現(xiàn)不能解決,問題不大繼續(xù)嘗試其他方法

3.2看VMWare右下角的網(wǎng)絡(luò)適配器是否連接,如果沒有連接則連接上。

關(guān)于Job for network.service failed because the control process exited with error code.

3.3如果你改成了靜態(tài)ip別忘了將BOOTPROTO改為static

3.4最后發(fā)現(xiàn)是/etc/syscofig/network-scripts/下多了一個(gè)ifcfg-eth2的文件,把多余的文件刪除或者移動(dòng)即可

關(guān)于Job for network.service failed because the control process exited with error code.

[root@web01 ~]# rm -f /etc/sysconfig/network-scripts/ifcfg-eth2
[root@web01 ~]# systemctl restart  network.service ? 
[root@web01 ~]# 

重啟成功文章來源地址http://www.zghlxwxcb.cn/news/detail-507828.html

到了這里,關(guān)于關(guān)于Job for network.service failed because the control process exited with error code.的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包