阿里里源配置

Windows下载阿里云的yum源地址

 https://opsx.alibaba.com/mirror

配置好阿里云yum源进入以下目录

cd /etc/yum.repos.d

创建文件夹

mkdir centOS-yum

把当前的所有源都放进文件夹

mv ./* centOS-yum/

然后就可以下载源1源2

下载yum源1

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

下载yum源2

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

测试测试

测试阿里云的yum工具,安装nginx软件

 yum install nginx 

安装完毕可以启动/停止/重启 nginx

systemctl  start/stop/restart  nginx 

 

posted @ 2019-04-03 08:28  等待の喵  阅读(348)  评论(0编辑  收藏  举报