# 进入 /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

 

相关文章:

  • 2021-11-19
  • 2021-05-03
  • 2021-07-24
  • 2021-12-06
  • 2021-09-18
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2021-07-22
  • 2021-10-05
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案