1.开启所有网卡
1 | find /etc/sysconfig/network-scripts/ -type f -path '*/ifcfg-*' | xargs sed -i 's/ONBOOT.*/ONBOOT=yes/g' && systemctl restart network |
2.设置镜像源并更新
1 | curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
3.安装常用软件
1 | yum install -y \ |
4.开机界面显示 IP
地址
1 | cat >>/etc/rc.d/rc.local<<'EOF' |
5.配置同步时间
1 | cat >>/etc/rc.d/rc.local<<'EOF' |
6.设置别名
1 | cat >>~/.bashrc<<'EOF' |
100.清理临时数据
1 | cp -rf /etc/issue.net /etc/issue |