zoukankan      html  css  js  c++  java
  • linux server ifconfig selinux配置

    vim /etc/sysconfig/network-script/ifcfg-eth0

    修改成:

    DEVICE="eth0"
    BOOTPROTO="static"
    NM_CONTROLLED="yes"
    ONBOOT="yes"
    TYPE="Ethernet"
    UUID="不动"
    HWADDR=不动
    IPADDR=10.207.27.251
    PREFIX=24
    GATEWAY=10.207.27.1
    NETMASK=255.255.255.0
    DNS1=8.8.8.8
    DOMAIN=4.4.4.4
    DEFROUTE=yes
    NAME="System eth0"

    在百度百科看下SElinux的作用:

    http://baike.baidu.com/view/487687.htm

    vim /etc/selinux/config

    # 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
    #SELINUX=enforcing
    # SELINUXTYPE= can take one of these two values:
    # targeted - Targeted processes are protected,
    # mls - Multi Level Security protection.
    #SELINUXTYPE=targeted

    iptables /etc/sysconfig/iptables

  • 相关阅读:
    中国象棋评估函数建模
    C语言中指针变量传参
    STM32外部中断
    C语言中的注释
    STM32学习网址
    C语言中的布尔值
    更改KEIL背景配色
    Modbus通讯协议
    DUP
    算法的时间复杂度
  • 原文地址:https://www.cnblogs.com/the-moving-ear/p/3591523.html
Copyright © 2011-2022 走看看