网站建设需要资质,网站开发用什么系统比较好,静态摄影网站模板,企业网站分为哪四类引言 最近使用centos7系统比较频繁#xff0c;在配置服务器的时候#xff0c;总是遇到能够ping通服务器#xff0c;但是就是没有办法访问80端口#xff0c;这个时候我的直觉告诉我#xff0c;肯定是防火墙的原因#xff0c;但是使用iptables却怎么都找不到命令#xff0…引言 最近使用centos7系统比较频繁在配置服务器的时候总是遇到能够ping通服务器但是就是没有办法访问80端口这个时候我的直觉告诉我肯定是防火墙的原因但是使用iptables却怎么都找不到命令经过查资料才发现centos7默认的防火墙是firewall于是把firewall的一些常用命令记录下来一来是加深印象二来方便查询。 firewall相关命令 #启动firewall
/bin/systemctl stop firewalld.service
#关闭firewall
/bin/systemctl stop firewalld.service
#开机启动firewall
/bin/systemctl able firewalld.service
#禁止firewall开机启动
/bin/systemctl disable firewalld.service#查看firewall状态/bin/systemctl status firewalld.service 转载于:https://www.cnblogs.com/crisenchou/p/6003284.html