当前位置:首页 > 服务器日常问题 > 正文内容

Centos7系统关闭防火墙(firewalld)的方法

xmwl2年前 (2022-07-09)服务器日常问题568

防火墙关闭、启动命令:

  1. <p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;">systemctl stop firewalld.service    #临时关闭防火墙,重启会自动开启。</p><p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;">systemctl start firewalld.service   #关闭防火墙的情况下,启动防火墙服务。</p><p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;">systemctl disable firewalld.service  #停止防火墙服务,重启系统也不会自动开启。</p><p style="list-style-type: none; color: rgb(102, 102, 102); font-family: 微软雅黑; font-size: 15px;">systemctl enable firewalld.service  #设置防火墙服务,开机自动启动防火墙。</p>


版权声明:
本站资源和文章内容大部分收集于网络,
本站所有资源的版权均属于原作者所有,
本站资源只用于参考学习,请勿直接商用,
若由于商用引起版权纠纷,一切责任均由使用者承担。
若有侵权之处请联系站长我们会第一时间删除

本文由XM技术学习分享发布,如需转载请注明出处。

本文链接:http://xmwl.cc/fwq/173.html

分享给朋友: