Linux配置阿里epl源

摘要:
前往阿里云活动仓库阿里云形象官方网站https://developer.aliyun.com/mirror/首先备份源mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo。备份下载新的CentOS-Base.repoto/etc/yum.repos.d/wget-O/etc/yum。根据相应版本的回购

去阿里云

有源仓库 阿里云镜像官方站点
https://developer.aliyun.com/mirror/

先备份本机上的源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

根据对应版本下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

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

或者

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

运行 yum makecache 生成缓存

[23:36:42 root@C8[ network-scripts]#yum makecache
Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 - AppStream                                           2.2 kB/s | 4.3 kB     00:01    
CentOS-8 - Base - mirrors.aliyun.com                           1.7 MB/s | 2.2 MB     00:01    
CentOS-8 - Extras - mirrors.aliyun.com                          20 kB/s | 5.5 kB     00:00    
Metadata cache created.

免责声明:文章转载自《Linux配置阿里epl源》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇windows下《七天学会NodeJS》学习笔记之一--NodeJS基础python用sqlite3模块操作sqlite数据库-乾颐堂下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

centos 配置vlan

centos 配置vlan https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/7/html/networking_guide/sec-configure_802_1q_vlan_tagging_using_the_command_line 在 Red Hat Ent...

linux启动init流程(转)

当系统启动时,首先启动内核,内核调用init来完成引导进程.init启动时,它会在/etc/inittab内查找默认的运行级别:如id:2:initdefault:运行/etc/rc.d/init.d中运行级别为2的启动脚本。由于init.d中的运行级别的这些脚本都用ln 命令连接到/etc/rc.d/rcn.d目录.例如/etc/rc.d/rc2.d/S...

Linux下源码安装xz的方法

xz是一个不太常见但又效率非常高的解压缩软件,安装方法如下 1,cd /usr/local/src 2,wget https://tukaani.org/xz/xz-5.2.3.tar.gz //下载到/usr/local/src目录下 3,tar xzvf xz-5.2.3.tar.gz 4, cd xz-5.2.3 5, ./con...

【ODPS】阿里云ODPS中带分区的表操作

1.创建分区表: 分区表有自己的分区列,而分区表则没有。 public static void createTableWithPartition(Odps odps, String createTableName) throws Exception { Tables tables = odps.tables();// /获取表示ODPS全部Ta...

Linux目录结构及开机流程详解

对Linux有一些了解的,都应该知道在Linux中所有的内容都是文件,包括硬盘等各种硬件在Linux中也都是按照文件来继续处理的,所以对Linux文件的了解将是非常重要的。 目录0x01 Linux重要目录结构 0x02 Linux启动流程 0x01 Linux重要目录结构/bin 用户的命令都在这里 使用which 命令 可以查看命令的所在路径 /bo...

linux下给apache设置虚拟主机

linux下apache的配置文件目录在/etc/apache2/sites-available/default里,在默认内容的最后添加需要设置的服务器域名和对应目录就行。<VirtualHost *:80>ServerName www.adangmedia.comDocumentRoot /home/adang/workspace/www/&...