[root@localhost ~]# systemctl stop firewalld 关闭防火墙
[root@localhost ~]# systemctl start firewalld 开启防火墙
[root@localhost ~]# systemctl disable firewalld 永久关闭防火墙
[root@localhost ~]# systemctl ensable firewalld 启动防火墙
[root@localhost ~]# systemctl status firewalld 查看防火墙状态
出现Active: active (running)切高亮显示则表示是启动状态。
出现 Active: inactive (dead)灰色表示停止,看单词也行。