关于【Linux/CentOs】如何查看当前防火墙的状态
操作如下:
使用命令 systemctl status firewalld.service
[hy@localhost ~]$ systemctl status firewalld.service
a— firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[hy@localhost ~]$
由上可见,防火墙状态是非激活(死寂)状态。
把防火墙关掉是很多虚拟机和少数内部系统的开发环境的做法,因为这样省事,当然到生产环境就不能这么干了。
为了程序快速运行起来,让系统先裸奔一会….:)
END
