#!/bin/bash #vim /etc/resolv.conf #nameserver 8.8.8.8 #google域名服务器 #nameserver 8.8.4.4 #google域名服务器 # 修改源 cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # 运行yum makecache生成缓存 yum makecache # 更新系统 yum -y update # 安装lrzsz yum -y install lrzsz
标签:脚本,初始化,CentOS,centos,8.8,repo,etc,Base,yum From: https://www.cnblogs.com/raorao1994/p/17401555.html