CentOS6.x 和 CentOS6.x 设置防火墙

来源:互联网 发布:js splice 删除多个 编辑:程序博客网 时间:2024/05/16 07:19
CentOS6.x 关闭防火墙: service iptables stop
CentOS7.x 关闭防火墙 systemctl stop firewalld
CentOS6.x 永久关闭防火墙(开机不自启): chkconfig iptables off
CentOS7.x 永久关闭防火墙(开机不自启): systemctl disable firewalld
CentOS6.x 查看防火墙当前状态: service iptables status
CentOS7.x 查看防火墙当前状态: systemctl status firewalldCentOS6.x 关闭防火墙: service iptables stop
CentOS7.x 关闭防火墙 systemctl stop firewalld
CentOS6.x 永久关闭防火墙(开机不自启): chkconfig iptables off
CentOS7.x 永久关闭防火墙(开机不自启): systemctl disable firewalld
CentOS6.x 查看防火墙当前状态: service iptables status
CentOS7.x 查看防火墙当前状态: systemctl status firewalld