会动的耳朵  

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

 

 

 

 

posted on 2014-03-10 12:24  会动的耳朵  阅读(605)  评论(0编辑  收藏  举报