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/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM