Redhat Linux 7查看和启停防火墙的方法

以root用户登录:
1.查看防火墙状态。
systemctl status firewalld


2.临时关闭防火墙命令。重启电脑后,防火墙自动起来。
systemctl stop firewalld


3.永久关闭防火墙命令。重启后,防火墙不会自动启动。
 systemctl disable firewalld





打开防火墙命令。
systemctl enable firewalld


请使用浏览器的分享功能分享到微信等