系统相关
首页 > 系统相关> > CentOS 7.9.2009 虚拟机模板配置

CentOS 7.9.2009 虚拟机模板配置

作者:互联网

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

 

标签:network,CentOS,虚拟机,firewalld,192.168,etc,systemctl,yum,2009
来源: https://www.cnblogs.com/nihaorz/p/15814360.html