centos7下的防火墙是firewall 所以如果是其他系统不通用
查看防火墙状态: systemctl status firewalld.service
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/f78fdcaf859c5017e00396d62a603918.png)
Active为running说明防火墙是开启的
关闭防火墙: systemctl stop firewalld.service
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/50390311b73b4ec00c6845d5e42dcb41.png)
执行开机禁用防火墙自启命令 : systemctl disable firewalld.service
启动防火墙:systemctl start firewalld.service
防火墙开机自启 : systemctl enable firewalld.service