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

原文地址:https://www.cnblogs.com/geek-ace/p/7729954.html