centOS7永久关闭防火墙(防火墙的基本使用(转)

查看防火墙状态: systemctl status firewalld.service

如图

绿的running表示防火墙开启

执行关闭命令: systemctl stop firewalld.service

再次执行查看防火墙命令:systemctl status firewalld.service

如下图所示表示防火墙已经关闭

执行开机禁用防火墙自启命令  : systemctl disable firewalld.service

完成

============================================================

关于防火墙的其他命令:

启动:systemctl start firewalld.service

防火墙随系统开启启动  : systemctl enable firewalld.service

 原文地址  https://blog.csdn.net/ViJayThresh/article/details/81284007

猜你喜欢

转载自www.cnblogs.com/php-linux/p/12358123.html
今日推荐