gpt4 book ai didi

python - centos 7启动firewalld失败

转载 作者:太空狗 更新时间:2023-10-29 11:24:12 24 4
gpt4 key购买 nike

我在我的 centos 服务器上安装了 firewalld 但当我尝试启动它时我得到了这个:

$ sudo systemctl start firewalld
Job for firewalld.service failed. See 'systemctl status firewalld.service' and 'journalctl -xn' for details.

这是 systemctl 状态:

sudo systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: failed (Result: exit-code) since پنجشنبه 2016-04-07 05:36:17 UTC; 9s ago
Process: 929 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=1/FAILURE)
Main PID: 929 (code=exited, status=1/FAILURE)

آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: firewalld.service: main process exited, code=exited, status=1/FAILURE
آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: Failed to start firewalld - dynamic firewall daemon.
آوریل 07 05:36:17 server1.hamed1soleimani.ir systemd[1]: Unit firewalld.service entered failed state.

和防火墙命令状态:

sudo firewall-cmd --stat
Traceback (most recent call last):
File "/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 37, in <module>
from . import _gi
ImportError: /usr/lib64/python2.7/site-packages/gi/_gi.so: undefined symbol: g_type_check_instance_is_fundamentally_a

我无法理解 firewalld 和一些 gtk python 扩展之间的关系!

最佳答案

这对我有用:

systemctl stop firewalld
pkill -f firewalld
systemctl start firewalld

关于python - centos 7启动firewalld失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36467658/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com