1、先使用minimal安装系统
2、配置网络:dhcp或者静态ip,修改/etc/sysconfig/network-scripts/ifcfg-eth0文件;配置DNS,修改/etc/resolv.cf,增加nameserver
3、安装基本网络组件:
yum install net-tools yum install wget
4、更改源,阿里源比较快:
mkdir /etc/yum.repos.d/backup mv /etc/yum.repos.d/*.repo backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache
3、安装组件:
yum install gcc yum install selinux-policy-devel yum install epel-release yum install dkms yum install nmap yum install java yum install yum-axelget yum install gcc-c++ yum install make yum install gdb yum install cmake yum install git yum install unzip yum install libtool yum install libxml2 yum install libcurl yum install openssl yum install zlib yum install python-pip
4、禁用组件:
systemctl stop firewalld #停止防火墙 systemctl disable firewalld #禁止防火墙自启动