1.先查看状态 systemctl status firewalld
2.如果开启不自动启动 运行systemctl enable firewalld即可
systemctl stop firewalld 停止服务
systemctl start firewalld 启用服务
systemctl restart firewalld 重启服务
systemctl status firewalld 查看服务状态
systemctl disable firewalld 启动类型:禁用,使其不再在系统启动时自动启动
systemctl enable firewalld 启动类型:自动,使在系统启动时服务将自动启动 |