0
点赞
收藏
分享

微信扫一扫

go和swoole性能比较

飞空之羽 2024-01-23 阅读 12

CentOS配置阿里云yum源和阿里云epel源

前言:

阿里云地址

https://developer.aliyun.com/mirror/

一、 备份

cd /etc/yum.repos.d/ && mkdir bak
mv *.repo *repo.rpmnew ./bak/

在这里插入图片描述

二、 配置阿里云yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#进入目录
cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/Centos-7.repo
 
yum clean all
yum makecache

在这里插入图片描述

三、 配置阿里云epel源

wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
#或者
cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache

在这里插入图片描述

四、测试

yum install -y httpd

在这里插入图片描述

举报

相关推荐

0 条评论