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

vim /etc/sysconfig/network-scripts/ifcfg-xxx

修改

BOOTPROTO=static 

下方添加

IPADDR=静态IP地址
GATEWAY=默认网关
NETMASK=255.255.255.0
DNS1=114.114.114.114

保存之后执行

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.

这时候就纠结了,跑去原来的系统中查看源码看是不是手误改到了哪一项,结果发现原来的系统也不行了, 使用 ifconfig查看了一下

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        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

少了一项网卡的,尝试着重启了系统,再测试一下,也是不行.跑去翻了网络上的大神门都是怎么解决了,尝试了数种方法,终于两个系统都解决了

在 /etc/sysconfig/network-scripts目录下删除掉别的ifcfg-xxx(只保留一个你网卡同名的文档)

再把NetworkManager停用

systemctl stop NetworkManager
systemctl disable NetworkManager

使用 ip addr 查看 mac地址,把mac地址添加进 ifcfg-xxx 的HWADDR中(如果没有就再新添加一项)

HWADDR=xx:xx:xx:xx:xx:xx

:wq 保存之后再执行 systemctl restart network 就可以解决了

原文地址:https://www.cnblogs.com/unrecognized/p/11517888.html

时间: 2024-08-08 18:06:18

Job for network.service failed because the control process exited with error code问题的相关文章

Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See &quot;systemctl status network.service&quot; and &quot;journalctl -xe&quot; for details.

linux下重启网卡使用命令 : service network restart 时报错: [[email protected] hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.servi

Centos7 网络报错Job for iptables.service failed because the control process exited with error code.

今天在进行项目联系的时候,启动在待机的虚拟机,发现虚拟机的网络设置又出现了问题. 我以为像往常一样重启网卡服务就能成功,但是它却报了Job for iptables.service failed because the control process exited with error code. 后来在网上查找了一列方法进行尝试,虽然没有解决我的问题,但是也做一下记录: 打开任务管理器,先确定你的Vm服务有没有被停止,我开始弄了好一阵子才发现被停止了,虽然启动之后没有解决我的问题,但这种事情也

Job for httpd.service failed because the control process exited with error code. See &quot;systemctl status httpd.service&quot; and &quot;journalctl -xe&quot; for details

thinkphp 在Apache上配置启用伪静态,重启Apache1 restart 竟然失败了,报错 Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details 嗯,看状态 执行命令 systemctl status http

docker 报错: Job for docker.service failed because the control process exited with error code. See &quot;systemctl status docker.service&quot; and &quot;journalctl -xe&quot; for details.

centos 启动docker服务报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 1,create daemon.json in /etc/docker/ 2, put this in it: { &q

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error code. See &quot;systemctl status docker.service&quot; and &quot;journalctl -xe&quot; for details.)

一.启动失败 1.启动docker [[email protected] ~]# systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe " for details. 上面表示输入 systemctl

Job for php-fpm.service failed because the control process exited with error code. See &quot;systemctl status php-fpm.service&quot; and &quot;journalctl -xe&quot; for details.

[[email protected] ~]#  systemctl start php-fpm Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. [[email protected] ~]#  systemc

Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See &quot;systemctl status docker.service&quot;

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: 1 [[email protected] docker]# service docker start 2 Redirecting to /bin/systemctl start docker.service 3 Job for docker.service failed because the control pr

Job for docker.service failed because the control process exited with error code. See

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"1刚遇到这个问题时, 在百度上找答案, 但是找到的答案都不能满足这个

centos 报错 “Job for iptables.service failed because the control process exited with error code.”的解决办法

原因:因为centos7默认的防火墙是firewalld防火墙,不是使用iptables,因此需要先关闭firewalld服务,或者干脆使用默认的firewalld防火墙. 操作步骤: 关闭防火墙 1.systemctl stop firewalld 2.systemctl mask firewalld 在使用iptables服务 #开放443端口(HTTPS)3.iptables -A INPUT -p tcp --dport 443 -j ACCEPT #保存上述规则4.service ip