CentOS7 启动 firewalld 防火墙失败,查看日志提示超时

问题描述

启动 firewalld systemctl start firewalld 时命令卡住不动不返回,Ctrl+C 取消后,systemctl status firewalld 提示启动状态超时,启动失败。

问题解决

#关闭firewalld服务
systemctl stop firewalld;
#关闭firewalld进程
pkill -f firewalld;
#启动firewalld服务
systemctl start firewalld;

到此就正常了。

官方的说法是可能 systemd 不知道自己没启动firewalld成功,在那一直等着?

systemd didn’t know about the process that it didn’t start in the first place of course

参考官方博客:https://centosfaq.org/centos/centos-7-firewalldservice-operation-time-out-systemctl-firewalld-issues/

原文地址:https://www.cnblogs.com/hellxz/p/15672742.html