执行如下命令:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
如果没有wget:
yum -y install wget
执行如下命令:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
如果没有wget:
yum -y install wget
下一篇:nginx配置gzip
yum国内镜像
1快速配置yum源本段是朱培琪组员的配置方法,将教会大家快速配置yum源,这种方法很适合新创建的Linux系统,特别是RHEL7系列的Linux系统。 文内含长段代码可复制可往左滑,希望对大家有帮助! 首先把系统镜像挂载过来在右下角的光盘标志这里右键,然后点击连接,桌面就会出现镜像图标。然后再执行创建脚本的命令创建脚本。vim rhel7.repo.sh#在打开的文件中添加以下内容:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M