安装完python3版本后,防火墙无法启动Job for firewalld.service failed because the control process exited with error

原创 2018年04月15日 22:47:24
# firewall-cmd --state
发现
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
ModuleNotFoundError: No module named ‘gi‘
看到这个地址,去查看一下
# vim /usr/bin/firewall-cmd

在第一行后面添加之前使用的python版本

继续

# firewall-cmd --state

发现

not running

启动防火墙 service firewalld start

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

● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 日 2018-04-15 22:16:26 CST; 19s ago
     Docs: man:firewalld(1)
  Process: 8920 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=1/FAILURE)
 Main PID: 8920 (code=exited, status=1/FAILURE)

4月 15 22:16:26 python-0-121 systemd[1]: Starting firewalld - dynamic firewall da.....
4月 15 22:16:26 python-0-121 systemd[1]: firewalld.service: main process exited, ...RE
4月 15 22:16:26 python-0-121 systemd[1]: Failed to start firewalld - dynamic fire...n.
4月 15 22:16:26 python-0-121 systemd[1]: Unit firewalld.service entered failed state.
4月 15 22:16:26 python-0-121 systemd[1]: firewalld.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
先看高亮部分,发现红色高亮部分有一个地址,进去看看
vim /usr/sbin/firewalld

又看到解释器版本是/usr/bin/python 改成自己之前使用的版本

oh yes,问题解决了,试一下

service firewalld start 。 OK




Python3网络爬虫实战案例

-
  • 1970年01月01日 08:00

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

Docker Job for docker.service failed because the control process exited with error code ...
  • kinginblue
  • kinginblue
  • 2017-08-09 02:01:59
  • 622

gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro

Job for postfix.service failed because the control process exited with error code. See "systemctl st...
  • u013697959
  • u013697959
  • 2017-09-20 15:30:06
  • 1300

Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.

一、先检查自己的网络配置信息:路径: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736   如图 重启网络配置的命令:service n...
  • qq_38042891
  • qq_38042891
  • 2017-05-20 14:21:41
  • 15051

Job for postfix.service failed because the control process exited with error code. See "systemctl st

CentOS 7.2 启动postfix的时候报错: [root@ ~]# systemctl start postfix Job for postfix.service failed because...
  • Rodulf
  • Rodulf
  • 2017-04-18 09:57:09
  • 8046

Job for nginx.service failed because the control process exited with error code. See "systemctl stat

今天刚装的最新版的fedora 23系统,要重新配置下LNMP环境,遂网上找了下教程,按照步骤一步一步操作到nginx启动的时候出现了如下问题:[root@localhost ~]# systemct...
  • leedaning
  • leedaning
  • 2015-11-16 18:02:41
  • 51985

OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error

在按照官方文档搭建OpenStack时,注意了我之前的小错误提醒后,基本上不会遇到配置文件的问题。但是配置的时候还总是会遇到一些大大小小的问题,这些问题基本就出在你的虚拟机和安装环境之上。下面给大家列...
  • Victordas
  • Victordas
  • 2017-01-15 23:10:39
  • 6369

Job for tomcat.service failed because the control process exited with error code 解决办法:

这个问题是在 《 Linux下Tomcat8.5安装与环境配置 》 时遇到的; 错误信息如下: Job for tomcat.service failed because the control p...
  • Hello_World_QWP
  • Hello_World_QWP
  • 2017-12-22 10:42:58
  • 1689

解决Job for docker.service failed because the control process exited with error code. See "systemctl s

在ubuntu16.04下安装安装docker docker daemon启不起来,报如下错误: Job for docker.service failed because the control ...
  • RonnyJiang
  • RonnyJiang
  • 2017-05-23 13:20:22
  • 5604

mysql.service failed because the control process exited with error code问题

mysql.service failed because the control process exited with error code错误
  • qq_34332010
  • qq_34332010
  • 2017-07-02 12:54:42
  • 9055
收藏助手
不良信息举报
您举报文章:安装完python3版本后,防火墙无法启动Job for firewalld.service failed because the control process exited with error
举报原因:
原因补充:

(最多只允许输入30个字)