RedHat 7关闭防火墙方法

蹲街弑〆低调 提交于 2019-12-03 01:54:51

1、在之前的版本中关闭防火墙等服务的命令是

service iptables stop

/etc/init.d/iptables stop

2、RHEL7开始,使用systemctl工具来管理服务程序,包括了service和chkconfig

systemctl list-unit-files|grep enabled

 

查看防火墙状态。
systemctl status firewalld

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

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

打开防火墙命令。
systemctl enable firewalld

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!