linux环境初始化

一、网络

1.ip配置

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp

service network restart

ip a

二、安全

1.iptables

iptables -F
service iptables stop

chkconfig iptables off

2.selinux

sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/sysconfig/selinux

setenforce 0

 

posted @ 2017-10-25 17:11  geek_ace  阅读(227)  评论(0编辑  收藏  举报