Linux怎么关闭防火墙?

Linux怎么关闭防火墙?

问题:老是关闭防火墙太麻烦,所以选择彻底关闭防火墙,发现每次都记不住命令!

下面是red hat/CentOs7关闭防火墙的命令!

1:查看防火状态

systemctl status firewalld

service iptables status

2:暂时关闭防火墙

systemctl stop firewalld

service iptables stop

3:永久关闭防火墙

systemctl disable firewalld

chkconfig iptables off

4:重启防火墙

systemctl enable firewalld

service iptables restart

5:永久关闭后重启

//暂时还没有试过

chkconfig iptables on

 

最简单的方法,安装宝塔。

请务必线上支付,通过线下支付的出现任何问题平台均不担保!

相关推荐

Centos7怎么开启BBR加速(linux服务器性能提高解决方案)

Centos7怎么开启BBR加速(linux服务器性能提高解决方案)GoogleBB...

linux如何开启和关闭防火墙?

linux如何开启和关闭防火墙?Ubuntu#查看防火墙状态  sudoufwsta...

Linux怎么进入根目录查看文件?

进入终端首先是这样的:  要输入cd/才能进入根目录:然后即可通...

在 Linux 命令行使用 more 查看文本文件

文本文件和Linux一直是携手并进的。或者说看起来如此。那你又是依靠哪些让你使用起来...

发表回复

登录... 后才能评论