zoukankan      html  css  js  c++  java
  • CentOS 7.2 关闭防火墙

    CentOS7 的防火墙配置跟以前版本有很大区别,CentOS7这个版本的防火墙默认使用的是firewall,与之前的版本使用iptables不一样

    CentOS7:

    防护墙状态:  systemctl status firewalld.service

     

    关闭防火墙:   systemctl stop firewalld.service

    开启防火墙:systemctl start firewalld.service

    关闭开机启动:systemctl disable firewalld.service

    开启开机启动:systemctl enable firewalld.service

    centos7上可以安装iptable

    安装iptables

    [root@localhost ~]# yum install iptables-services  -y   #安装

    [root@localhost ~]# systemctl restart iptables.service #重启防火墙使配置生效

    [root@localhost ~]# systemctl enable iptables.service #设置防火墙开机启动

    [root@localhost ~]# systemctl disable iptables.service #禁止防火墙开机启动


    CentOS6:

    防火墙状态:  service iptables status

    关闭防火墙:  service iptables stop

    开启防火墙:service iptables start  

    永久关闭:      chkconfig iptables off

    永久开启:      chkconfig iptables on 

    注:文章如有疑问或错误之处,请留言评论指出,必将学习之.

  • 相关阅读:
    MyBaits基本要素
    自定义MVC
    mybatis之多个对象自动装配问题
    idea之映射servlet问题
    idea工程jdk设置问题
    初识多线程之基础知识与常用方法
    多线程之模拟数据库连接
    mybatis配置文件详解
    初识mybatis之入门案例
    mybatis中打印sql语句
  • 原文地址:https://www.cnblogs.com/jokej/p/10923804.html
Copyright © 2011-2022 走看看