CnetOS命令
CentOS关闭防火墙命令:
1 | systemctl stop firewalld |
CentOS启动防火墙
1 | systemctl start firewalld |
关闭防火墙后再次启动防火墙,发现无法启动,错误是超时:
1 | [root@localhost ~]service firewalld restart |
解决办法:
需要关闭firewalld进程,再启动firewalld
1 | systemctl stop firewalld #停止firewalld |
官方解释可能原因: systemd didn’t know about the process that it didn’t start in the first place of course
参考链接:Centos执行开启防火墙命令超时