1:最小化安装
2:修改网卡
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=52:54:00:0e:c2:c3
TYPE=Ethernet
UUID=14902246-7b8b-4553-b2c3-167458f3ae72
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=yes
USERCTL=no
IPV6INIT=no
IPADDR=192.168.122.4
NETMASK=255.255.255.0
DNS2=8.8.8.8
GATEWAY=192.168.122.1
DNS1=114.114.114.144
~
3:修改主机名
vim /etc/sysconfig/network
4:hosts 本机解析
vim /etc/networks
5:精简开机系统服务
1: ntsysv
2: setup system server
3:
chkconfig --list|grep 3:on|grep -vE "crond|sshd|network|rsyslog|sysstat" |awk '{print "chkconfig "$1 " off" }'|bash
chkconfig --list|grep 3:on
6:锁定系统文件
chattr +i /etc/passwd /etc/group /etc/gshadow /etc/inittab
7:关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config