个人喜好最小化安装系统,需要配置的如下信息
1.更改网络配置为固定ip
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="static" IPADDR=10.1.1.3 NETMASK=255.255.255.0 GATEWAY=10.1.1.1 DNS=114.114.114.114 ONBOOT="yes"
配置dns记录
#vi /etc/resolv.conf nameserver 114.114.114.114
#重启网络
#service network restart
2.修改yum源
#cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup #cd /etc/yum.repos.d/
#yum installl -y wget
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo #yum makecache
3.安装常用软件
#yum -y install vim* lrzsz gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel