首页 > 其他 > 详细

linux server ifconfig selinux配置

时间:2014-03-11 05:10:13      阅读:456      评论:0      收藏:0      [点我收藏+]

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!