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
linux server ifconfig selinux配置,布布扣,bubuko.com
linux server ifconfig selinux配置
原文:http://www.cnblogs.com/the-moving-ear/p/3591523.html