Centos7防火墙未运行

时间:2015-07-14 03:29:11

标签: centos firewall centos7

这是我从状态firewalld得到的:

firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since Tue 2015-07-14 02:58:35 UTC; 35s ago
Process: 19546 ExecStart=/usr/sbin/firewalld --nofork --nopid
$FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 19546 (code=exited, status=0/SUCCESS)

Jul 14 02:58:35 li1201-198.members.linode.com firewalld [19546]:2015-07-14 02:58: 35错误:异常DBusException: org.freedesktop.DBus.Error.AccessDenied:Connection":1.314"不允许拥有该服务" org.fedoraproject.FirewallD1"由于配置文件中的安全策略 7月14日02:58:35 li1201-198.members.linode.com systemd [1]:启动firewalld - 动态防火墙守护进程。

2 个答案:

答案 0 :(得分:9)

最近,在Red Hat Bugzilla跟踪器中的Bug 1575845显示RHEL / CentOS 7.3或更高版本中的一个问题触发了此问题。带有dbus策略的信息未正确传递。永久修复程序(目前)可能是将基本映像升级到RHEL / CentOS的较新版本。

但是,在this comment中,这些命令也应该在Bugzilla中起作用:

sudo systemctl restart dbus
sudo systemctl restart firewalld

答案 1 :(得分:2)

当我将firewalld.noarch软件包安装为具有sudo权限的非root用户时,我在CentOS 7 VPS(最小安装)上遇到了同样的问题。

要修复,我必须以root身份登录然后擦除并重新安装firewalld。

相关问题