kali linux重启网卡失败:Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details. 问题排查
linux菜鸡的时候,总是为了配置网络而烦恼,重启网卡的原因有很多,我这次是因为配置了固定IP【使用第三方工具连接】所以需要重启网卡,出现 Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details,网上搜索了一大堆,发现是自己的问题,下面一个个开始排查,centos网卡配置固定IP的可以参考此链接:https://www.cnblogs.com/pandana/p/15013554.html
1.首先重启网卡 systemctl restart networking 出现如下故障

2.解决方案【两个配置文件信息错误】,第一个文件是 /etc/network/interfaces【管理IP配置】,第二个文件是 /etc/resolv.conf【管理DNS】,首先查看当前的网卡信息 ifconfig 命令,如下图当前IP地址为192.168.190.137

3.解决第一个配置文件问题,键入命令gedit /etc/network/interfaces【使用gedit是以文本编辑器的形式打开,方便菜鸡对vi和vim是不熟练】

可以看到,上面的 interfaces 配置文件错漏百出,怎么可能重启网络服务,只能使用当前DHCP的服务了,固定ip无法配置,下面开始解决问题
①把etho【字母o】改为eth0【数字0】
②把当前的address 192.168.139.130改为192.168.190.137【当然你这里可以乱改,只要是192.168.190网段就行,具体的看个人配置,我这里改为ifconfig的就行】
③吧当前的gateway 192.168.139.1改为192.168.190.2,如何查看网关地址,如下图,先点击虚拟机菜单栏的1编辑——2虚拟机编辑器【因为我选择的是NAT模式,子网的网段为192.168.190,桥接模式需要点击右下角的更改配置】——3NAT设置

可以看见当前的默认网关为192.168.190.2,你也可以修改,但是我这里就不操作了。修改完成后点击右上角的Save保存然后右上角小叉退出即可


为了方便水友们打错了,把etc/network/interfaces配置文件贴上,修改具体参数就行
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.190.137
netmask 255.255.255.0
gateway 192.168.190.2
4.修改第二个配置文件,配置DNS服务的,键入命令 gedit /etc/resolv.conf

可以加一个外网的谷歌DNS进入,当然也可以不加,加完就保存退出。
# Generated by NetworkManager
search localdomain
nameserver 192.168.190.2
nameserver 8.8.8.8
5.两个文件修改完毕,开始重启网卡配置,命令 systemctl restart networking,发现还是不行!!不要慌,重启kali即可,键入reboot命令重启服务

重启之后,网络的IP地址固定下来了,当前ip确实为刚才修改的静态ip地址192.168.190.137,且重启网卡命令systemctl restart networking不再出错;

注:如果reboot重启之后还是出现无法获取IP的行为,那就,,,,,那就证明你的/etc/network/interfaces配置文件错了,麻烦你再认真看一遍!!!!!

最后,如果还是不行,麻烦你私信我,我就不信邪了,,,,。。
kali linux重启网卡失败:Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details. 问题排查的更多相关文章
- Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
linux下重启网卡使用命令 : service network restart 时报错: [root@slave01 hadoop]# service network restart Startin ...
- Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"
在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: [root@zk ...
- CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.)
一.启动失败 1.启动docker [root@localhost ~]# systemctl start docker Job for docker.service failed because t ...
- 启动Nginx服务失败:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
首次接触nginx,安装完使用命令 service nignx restart 后,出现这个错误,并按照提示给出的命令查看错误详情 systemctl status nginx.service ...
- docker 启动失败 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
CentOS7安装docker,安装成功后,启动失败 提示: 我们可以看到此处它提示是Failed to start Docker Application Container Engine. 于是在网 ...
- linux网卡出现问题:Job for network.service failed because the control process exited with error code问题
[转自]:https://blog.csdn.net/dongfei2033/article/details/81124465 今天在centOS 7下更改完静态ip后发现network服务重启不了, ...
- DOCKER启动失败Job for docker.service failed because the control process exited with error code. See "syste mctl status docker.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl start docker Job for docker.service failed because the control process ...
- 虚拟机配置双网卡适配器后(桥接和NAT模式),重新打开后两个适配器的ip都没有了(重启网卡报Job for network.service failed because the control process exited with error code)
科普双网卡适配器的好处: 我是配了一个桥接模式的网卡和一个NAT模式的网卡,桥接模式,也就是将虚拟机的虚拟网络适配器与主机的物理网络适配器进行交接,虚拟机中的虚拟网络适配器可通过主机中的物理网络适配器 ...
- centos7启动httpd服务失败:Job for httpd.service failed because the control process exited with error code.
centos7启动httpd命令有两个可以用 service httpd start systemctl start httpd.service 如果出现如下报错 Job for httpd.s ...
随机推荐
- 一篇文章快速搞懂 Apache SkyWalking 的 OAL
OAL简介 在流模式(Streaming mode)下,SkyWalking 提供了 观测分析语言(Observability Analysis Language,OAL) 来分析流入的数据. OAL ...
- Linux安装及管理程序
一,常见的软件包封装类型 二.RPM包管理工具 三.查询RPM软件包信息 四.安装.升级.卸载RPM软件包 五.解决软件包依赖关系的方法 六.源代码编译 七.安装yum源仓库 一,常见的软件包封装类型 ...
- Redis之阻塞分析
Redis是典型的单线程架构,所有的读写操作都是在一条主线程中完成的.当Redis用于高并发场景时,这条线程就变成了它的生命线.如果出现阻塞,哪怕是很短时间,对于我们的应用来说都是噩梦.导致阻塞问题的 ...
- 7、linux快捷键
ctrl +a:切换到命令行开始 ctrl+e:切换到命令行结尾 ctrl+c:终止当前命令或脚本 ctrl+d:退出当前shell,相当于exit ctrl+l:清除当前屏幕的内容,相当于clear ...
- java_线程创建的三种方式及区别
java中关于线程的创建有三种: (1)通过继承Thread类创建线程. (2)通过实现Runnable接口创建线程. (3)通过Callable 和 Future 接口创建线程. * * * * * ...
- Hibernate框架(一)总结介绍
作为SSH三大框架之一的Hibernate,是用来把程序的Dao层和数据库打交道用的,它封装了JDBC的步骤,是我们对数据库的操作更加简单,更加快捷.利用Hibernate框架我们就可以不再编写重复的 ...
- macos 安装telnet命令
在10.12及以下版本,都内置了telnet命令,但是在10.13中,已经取消了 接下来给大家介绍下如何安装telnet命令 打开"终端",输入: /usr/bin/ruby -e ...
- leetcode 1122
思路分析: 主要思想:计数排序 先遍历arr1,然后计数,再遍历arr2时同时又排完序了,再继续把arr2不存在的数字,再遍历加到数组后面,也同时排完序了.方便快捷
- RabbitMQ入门教程 [转]
1.引言 RabbitMQ--Rabbit Message Queue的简写,但不能仅仅理解其为消息队列,消息代理更合适.消息队列主要解决应用耦合,异步消息,流量削锋等问题.实现高性能,高可用,可伸缩 ...
- python 06篇 常用模块
一.模块 什么是模块? 模块实质上就是一个python文件,它是用来组织代码的,意思就是说把python代码写到里面,文件名就是模块的名称,test.py test就是模块名称. 1.1 导入模块 i ...