当前位置: 首页 > wzjs >正文

网站的建设需要虚拟机吗市场监督管理局职责范围

网站的建设需要虚拟机吗,市场监督管理局职责范围,百度指数手机版,wordpress 多个文章页《CentOS Stream 9 阿里云 yum 源修改:解锁系统更新新速度》 开篇 在当今数字化飞速发展的时代,操作系统的稳定与高效至关重要。对于使用 CentOS Stream 9 的用户而言,yum 源的选择直接影响着软件包的获取速度和系统的整体性能。你是否曾因…

《CentOS Stream 9 阿里云 yum 源修改:解锁系统更新新速度》

开篇

在当今数字化飞速发展的时代,操作系统的稳定与高效至关重要。对于使用 CentOS Stream 9 的用户而言,yum 源的选择直接影响着软件包的获取速度和系统的整体性能。你是否曾因 yum 源的缓慢而苦恼,导致系统更新和软件安装过程漫长无比?别担心,今天我们就来深度剖析如何修改 CentOS Stream 9 的阿里云 yum 源,让你的系统更新如闪电般迅速!

主体

一、修改 centos.repo 文件:精心布局系统源基石

在对系统的 yum 源进行调整时,centos.repo 文件就如同系统的基石,至关重要。首先,我们要做的是备份 centos.repo 文件为 centos.repo.bak,这一步操作是为了确保在后续的修改过程中,即使出现意外情况,我们也能轻松回退到原始状态。

mv /etc/yum.repos.d/centos.repo /etc/yum.repos.d/centos.repo.bak
vim  /etc/yum.repos.d/centos.repo 

接下来,我们将以下精心配置的内容粘贴到 centos.repo 文件中。这些配置涵盖了多个不同的软件源,每个源都有其独特的作用。

[baseos]
name=CentOS Stream $releasever - BaseOS
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1[baseos-debug]
name=CentOS Stream $releasever - BaseOS - Debug
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[baseos-source]
name=CentOS Stream $releasever - BaseOS - Source
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/BaseOS/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[appstream]
name=CentOS Stream $releasever - AppStream
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1[appstream-debug]
name=CentOS Stream $releasever - AppStream - Debug
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[appstream-source]
name=CentOS Stream $releasever - AppStream - Source
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/AppStream/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[crb]
name=CentOS Stream $releasever - CRB
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0[crb-debug]
name=CentOS Stream $releasever - CRB - Debug
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[crb-source]
name=CentOS Stream $releasever - CRB - Source
baseurl=https://mirrors.aliyun.com/centos-stream/$stream/CRB/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0

二、修改 centos - addons.repo 文件:完善系统源拼图

同样,centos - addons.repo 文件也是我们不能忽视的关键一环。我们先对其进行备份,以确保操作的安全性。

mv /etc/yum.repos.d/centos-addons.repo /etc/yum.repos.d/centos-addons.repo.bak
vim /etc/yum.repos.d/centos-addons.repo 

然后,将以下详细配置信息粘贴进去:

[highavailability]
name=CentOS Stream $releasever - HighAvailability
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0[highavailability-debug]
name=CentOS Stream $releasever - HighAvailability - Debug
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[highavailability-source]
name=CentOS Stream $releasever - HighAvailability - Source
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/HighAvailability/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[nfv]
name=CentOS Stream $releasever - NFV
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0[nfv-debug]
name=CentOS Stream $releasever - NFV - Debug
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[nfv-source]
name=CentOS Stream $releasever - NFV - Source
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/NFV/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[rt]
name=CentOS Stream $releasever - RT
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0[rt-debug]
name=CentOS Stream $releasever - RT - Debug
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[rt-source]
name=CentOS Stream $releasever - RT - Source
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/RT/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[resilientstorage]
name=CentOS Stream $releasever - ResilientStorage
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/$basearch/os/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=0[resilientstorage-debug]
name=CentOS Stream $releasever - ResilientStorage - Debug
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/$basearch/debug/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[resilientstorage-source]
name=CentOS Stream $releasever - ResilientStorage - Source
baseurl=http://mirrors.aliyun.com/centos-stream/$stream/ResilientStorage/source/tree/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0[extras-common]
name=CentOS Stream $releasever - Extras packages
baseurl=http://mirrors.aliyun.com/centos-stream/SIGs/$stream/extras/$basearch/extras-common/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1[extras-common-source]
name=CentOS Stream $releasever - Extras packages - Source
baseurl=http://mirrors.aliyun.com/centos-stream/SIGs/$stream/extras/source/extras-common/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
enabled=0

三、清理并重建 yum 缓存:焕新系统源活力

最后,我们需要清理并重建 yum 缓存,这一步就像是给系统源注入新的活力,让我们刚刚修改的配置能够生效。

wget https://mirrors.aliyun.com/epel/epel-next-release-latest-9.noarch.rpm
wget https://mirrors.aliyun.com/epel/epel-release-latest-9.noarch.rpm
yum -y install epel-next-release-latest-9.noarch.rpm
yum -y install epel-release-latest-9.noarch.rpm
yum clean all && yum makecache

通过以上一系列精心操作,我们成功地将 CentOS Stream 9 的 yum 源修改为阿里云 yum 源。这不仅能显著提升系统更新和软件安装的速度,还能确保软件包的来源可靠。在数字化的浪潮中,让我们紧跟时代步伐,充分利用阿里云的强大资源,为我们的系统性能注入新的活力。同时,这也为我们后续的系统维护和优化奠定了坚实的基础。你是否已经迫不及待地想要尝试一下呢?


文章转载自:

http://SQIzaNKF.hpmzs.cn
http://dfLL91HS.hpmzs.cn
http://WlxjFbm5.hpmzs.cn
http://ynZYxkOa.hpmzs.cn
http://TII6WEYC.hpmzs.cn
http://QNoS4GCv.hpmzs.cn
http://2g1EhCEt.hpmzs.cn
http://uq3UC0NM.hpmzs.cn
http://2cFpEBqO.hpmzs.cn
http://IPfzhCcB.hpmzs.cn
http://1EpJLiHs.hpmzs.cn
http://Me1Ymq30.hpmzs.cn
http://y5qhzA4k.hpmzs.cn
http://EX97NseK.hpmzs.cn
http://3GU1AEuM.hpmzs.cn
http://yvVpfy0F.hpmzs.cn
http://GT9u9WmA.hpmzs.cn
http://0cTZWA9E.hpmzs.cn
http://1zshBOqc.hpmzs.cn
http://LNKZc9EG.hpmzs.cn
http://bjFm5wHl.hpmzs.cn
http://lnTei6V2.hpmzs.cn
http://CIR1zA1Y.hpmzs.cn
http://QIJTyyUf.hpmzs.cn
http://VP808wgl.hpmzs.cn
http://fKzlwMNO.hpmzs.cn
http://qyQdEQEe.hpmzs.cn
http://CJwZLQCI.hpmzs.cn
http://ETSdeqnP.hpmzs.cn
http://jJj9va3a.hpmzs.cn
http://www.dtcms.com/wzjs/676737.html

相关文章:

  • 做网站的文章中国建设网站的证件怎么查询
  • 软件工程师的工作内容网站推广优化技巧
  • 网站建设 实施计划书灰色系网站
  • 宁晋网站建设内江建网站
  • wordpress整站主题荆州seo推广
  • 宝安官网网站建设比较好的莱芜民生广角
  • 网站建设怎样做好wordpress codeus
  • 如何查询网站已经提交备案博客网站主页代码html
  • 怎么做查成绩网站石家庄网站制作工具
  • 网站毕业设计怎么做wordpress 关联
  • 医学分类手机网站模版网站 技术
  • 做网站怎么写预算哪些平台可以建立网站
  • 建站63年来第一次闭站 北京站辟谣wordpress主导航菜单
  • h5游戏大厅保定seo建站
  • 网站建设问卷调查表做360手机网站快速排名软件
  • 大连做网站外包响水网站建设服务商
  • 如何做网站连接阀门行业网站怎么做
  • word用来做网站的招聘网站建设销售
  • 企业网站建站 优帮云做的网站浏览的越多越挣钱
  • 网站空间商汽车网站模板
  • 江门网站制作设计提升网站访问量
  • pythom 网站开发规范html5 php 网站源码
  • 山东省城乡建设厅网站网站备案查询官网入口查询
  • 企业 网站建设网页设计与网站建设在线作业答案
  • 百度推广和网站建设一个软件开发流程
  • 做公司标志用哪个网站深圳东门步行街地铁站
  • 帝国cms网站地图xml工厂货源网
  • 射阳做企业网站哪家好杭州seo平台
  • c网站开发案例详解代码室内设计网站哪里可以看
  • 自己建网站多少钱asp网站代码