乐趣区

关于centos:CentOS防火墙查看关闭和禁止启动

# 查看防火墙状态
firewall-cmd --state

systemctl status firewalld

systemctl status firewalld.service

#敞开防火墙
systemctl stop firewalld.service

#禁止防火墙开启启动
systemctl disable firewalld.service

查看服务是否开机启动
systemctl is-enabled firewalld.service
退出移动版