Linux Centos 打开和关闭防火墙

 

 

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

 

posted @ 2022-08-21 15:12  幽篁晓筑  阅读(72)  评论(0编辑  收藏  举报