系统相关
首页 > 系统相关> > Linux Centos 打开和关闭防火墙

Linux Centos 打开和关闭防火墙

作者:互联网

 

 

systemctl status firewalld.service    # 查看防火墙状态
 
systemctl start firewalld.service     # 开启防火墙
 
systemctl stop firewalld.service      # 关闭防火墙
 
systemctl enable firewalld.service    # 将防火墙设置为开机自启动
 
systemctl disable firewalld.service   # 关闭开机自启动

 

标签:Centos,service,firewalld,防火墙,systemctl,关闭,Linux,自启动
来源: https://www.cnblogs.com/woods1815/p/16610055.html