zoukankan      html  css  js  c++  java
  • 永久关闭selinux | 防火墙

    关闭SELinux的两种方法

    1 永久方法 – 需要重启服务器

    修改/etc/selinux/config文件中设置SELINUX=disabled ,然后重启服务器。

    2 临时方法 – 设置系统参数

    使用命令setenforce 0

    附:
    setenforce 1 设置SELinux 成为enforcing模式
    setenforce 0 设置SELinux 成为permissive模式

    谢谢!

    centos6 关闭防火墙

    service iptables stop  临时关闭

    chkconfig iptables off   禁止防火墙开机自启

    谢谢

    CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下

    1、直接关闭防火墙

    firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

    systemctl stop firewalld.service #停止firewall

    systemctl disable firewalld.service #禁止firewall开机启动

    最后重启系统使设置生效即可。

    谢谢

    蓦然回首,那人却在,灯火阑珊处。
  • 相关阅读:
    HashMap的理解
    红黑树
    No constructor found matching
    会话 控制终端 setsid
    信息表示和处理 from computer system chapter 2
    tcp keepalive
    TCP 四步挥手
    CS 课程
    close vs shutdown socket
    Linux time总结
  • 原文地址:https://www.cnblogs.com/linux-186/p/7460091.html
Copyright © 2011-2022 走看看