linux关闭防火墙

时间:2021-05-11 17:03:43   收藏:0   阅读:28

1、centos6

service iptables stop --关闭命令
chkconfig iptables off --永久关闭防火墙
两个命令同时运行,运行完成后查看防火墙关闭状态
service iptables status

2、centos7

firewall-cmd --state --查看防火墙状态
systemctl stop firewalld.service --关闭防火墙
systemctl disable firewalld.service

原文:https://www.cnblogs.com/joeyJss/p/14754360.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!