zoukankan      html  css  js  c++  java
  • 禁用selinux

    查看selinux状态:

    [root@VM000000518 upload]# getenforce
    Enforcing

    禁用:

    [root@VM000000518 upload]# setenforce 0

    再次查看状态变化:

    [root@VM000000518 upload]# getenforce
    Permissive

    禁用开机启动选项:

    [root@VM000000518 upload]# cat /etc/sysconfig/selinux
    
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of these two values:
    #     targeted - Targeted processes are protected,
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted

    关掉iptable, ip6table, system-config-firewall:

    [root@VM000000518 upload]# /etc/init.d/iptables stop
    [root@VM000000518 upload]# /etc/init.d/ip6tables stop
    system-config-firewall
    
             ┌───────────────────────┤ 防火墙配置 ├───────────────────────┐
             │                                                            │
             │ 防火墙保护网络免遭未经授权的网络入侵。启用防火墙会阻塞所有         │
             │ 进入的连接。禁用防火墙会允许所有连接,我们不推荐您这么做。         │
             │                                                            │
             │                     防火墙: [ ] 启用                        │
             │                                                            │
             │      ┌──────┐            ┌──────┐           ┌──────┐       │
             │      │ 确定 │             │ 定制 │           │ 取消  │       │
             │      └──────┘            └──────┘           └──────┘       │
             │                                                            │
             │                                                            │
             └────────────────────────────────────────────────────────────┘
    
      <Tab>/<Alt-Tab> between elements   |  <Space> selects   |  <F12> next screen
  • 相关阅读:
    1111实验二 作业调度模拟实验
    1006实验一实验报告
    0909对操作系统的认识
    南阳OJ-138 找球号(二)(hash表应用)
    南阳OJ-38 布线问题(最小生成树应用_prim)
    插入排序
    南阳OJ-756 重建二叉树(二叉树的中序遍历和后序遍历求先序遍历)
    南阳OJ-63 小猴子下落(数据结构-二叉树)
    UVA OJ-11095 Maximum Product(暴力求解法)
    UVA OJ-725 Division (暴力求解法)
  • 原文地址:https://www.cnblogs.com/hyang0/p/6479786.html
Copyright © 2011-2022 走看看