centos6(安装操作系统直接最小化安装就行)
1.进入网卡配置文件将网卡的MAC和UUID删除(网卡需要开机自启的话,只要把ONBOOT=no改为ONBOOT=yes就行)
2.挂在光盘,临时挂在
3.制作yum源
yum clean all #清楚yum源的缓存
yum makecache #生成新的yum源
yum -y install gcc gcc-c++ make automake autoconf readline readline-devel #安装软件
yum -y install vim-enhanced openssh-clients sysstat
4.清楚网卡的配置文件信息
5.关闭防火墙和selinux防火墙
service iptables stop #关闭iptables防火墙
setenforce 0 #临时关闭selinux防火墙
centos7
1.先挂载本地磁盘(同上)
2。 yum -y install epel-release 安装软件用来启动yum源
yum -y install net-tools
yum -y install vim-enhanced
yum -y install gcc gcc-c++ make automake autoconf readline readline-devel
3关闭firewalld和NetworkManager
systemctl stop firewalld
systemctl stop NetworkManager
标签:gcc,防火墙,网卡,centos6,yum,install,机制,readline,模板 From: https://www.cnblogs.com/caizongzi/p/17923623.html