天下事有难易乎?为之,则难者亦易矣;不为,则易者亦难矣。

Linux关闭防火墙命令

往事如烟 1870次浏览 0个评论

下面是CentOS5 和7的口令,略有不同。

  • 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


ITZOO版权所有丨如未注明 , 均为原创丨转载请注明来自IT乐园 ->Linux关闭防火墙命令
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址