首页
导航
博客
电子书
算法
众创
代码
随贴
关于我们
您好,欢迎来到码863代码分享网! 请
[登录]
/
[注册]
搜 索
标题:
*
140
字
TAG标签:
(用空格隔开)
30
字
恢复历史版本:
请选择分类
html
python
javascript
php
sql
c
c++
c#
java
plain
所有人可见
仅自己可见
编辑器:UEditor
编辑器:TinyMCE
编辑器:Editor.md
HTML转MD
HTML转MD2
<p><span style="font-family:verdana, sans-serif;"><span style="font-size:21px;">https://www.cnblogs.com/luo3911/p/15957833.html</span></span></p> <h2 style="margin:10px 0px;font-size:21px;line-height:1.5;font-family:verdana, sans-serif;background-color:#ffffff;">操作步骤</h2> <ul style="margin-left:30px;padding-left:0px;font-size:13px;font-weight:400;"> <li style="list-style-type:disc;"> <p style="margin:10px auto;"><code style="font-family:'Courier New', sans-serif;font-size:12px;padding:0px 5px;line-height:1.8;margin:0px 3px;vertical-align:middle;background-color:#f6f6f6;color:#e83e8c;">cd /etc/yum.repos.d</code> 跳转目录</p> </li> <li style="list-style-type:disc;"> <p style="margin:10px auto;"><code style="font-family:'Courier New', sans-serif;font-size:12px;padding:0px 5px;line-height:1.8;margin:0px 3px;vertical-align:middle;background-color:#f6f6f6;color:#e83e8c;">mv ./CentOS-Stream-BaseOS.repo ./CentOS-Stream-BaseOS.repo.backup</code> 备份文件,</p> </li> <li style="list-style-type:disc;"> <p style="margin:10px auto;"><code style="font-family:'Courier New', sans-serif;font-size:12px;padding:0px 5px;line-height:1.8;margin:0px 3px;vertical-align:middle;background-color:#f6f6f6;color:#e83e8c;">vi CentOS-Stream-BaseOS.repo</code> 创建文件, 输入以下内容:</p> </li> </ul> <pre class="language-css"><code># CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base - 163.com #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://mirrors.163.com/centos/8-stream/BaseOS/x86_64/os/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates - 163.com #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://mirrors.163.com/centos/8-stream/BaseOS/x86_64/os/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras - 163.com #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://mirrors.163.com/centos/8-stream/extras/x86_64/os/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus - 163.com baseurl=http://mirrors.163.com/centos/8-stream/centosplus/x86_64/os/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7</code></pre> <ul style="margin-left:30px;padding-left:0px;font-family:verdana, sans-serif;font-size:13px;background-color:#ffffff;"> <li style="list-style-type:disc;"><code style="font-family:'Courier New', sans-serif;font-size:12px;padding:0px 5px;line-height:1.8;margin:0px 3px;vertical-align:middle;background-color:#f6f6f6;color:#e83e8c;">yum clean all && yum makecache</code> 更新yum</li> </ul> <h2 style="margin:10px 0px;font-size:21px;line-height:1.5;font-family:verdana, sans-serif;white-space:normal;background-color:#ffffff;"></h2>
CopyRight 2002~2023 精通2100网 联系邮箱:qqtxt@163.com
版权所有:精通2100网
湘ICP备2023018646号-1
MYSQl共执行 4 个查询,用时 0.0028526782989502 秒,PHP脚本用时 0.005679 秒,占用内存 0.511 MB,Gzip 已启用