# 进入 /etc/sysconfig/network-scripts/ 修改网卡文件,设置 BOOTPROTO="static",新增如下配置: IPADDR=192.168.36.207 GATEWAY=192.168.36.254 NETMASK=255.255.255.0 DNS1=172.16.20.150 # 重启网络服务 systemctl restart network # 设置时区 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime date # 设置语言 echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf # 安装工具 yum install curl wget tar zip unzip -y # 关闭防火墙 systemctl stop firewalld systemctl disable firewalld # 清除 yum 缓存 yum clean all rm -rf /var/cache/yum/* # 清除历史记录 history -c history -w