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-8.repo |
3.安装常用软件
1 | yum install -y \ |
4.配置同步时间
1 | sed '3i\pool ntp.ntsc.ac.cn iburst' /etc/chrony.conf |
5.设置别名
1 | cat >>~/.bashrc<<EOF |
100.清理临时数据
1 | cp -rf /etc/issue.net /etc/issue |