一、在安装的时候配置网卡名称的参数
1. 选择“Install Centos 7”2. 按Tab,打开kernel启动选项后,增加 net.ifnames=0 biosdevname=0
二、最小化安装完成之后必备安装软件
# rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm # yum install -y net-tools vim lrzsz tree screen lsof tcp wget# hostnamectl set-hostname linux-node1.example.com# systemctl disable firewalld# systemctl disable NetworkManager# sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config # 设置打开文件描述符的数量# echo "* hard nofile 65536" >> /etc/security/limits.conf# echo "* soft nofile 65536" >> /etc/security/limits.conf # 设置记录历史命令的格式 # echo 'export HISTTIMEFORMAT=" %F %T `whoami` "' >> /etc/profile # source /etc/profile # 使用tables键的时候补全systemctl命令 # yum install -y bash-completion # 安装killall命令 # yum install psmisc