Centos8换阿里云源教程–服务器可用

cd /etc/yum.repos.d/

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

# 如果安装wget就不需要这一步
yum install wget –y
# 更新yum源为阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

yum clean all

yum makecache
# 验证
yum install -y vim

 

给TA打赏
共{{data.count}}人
人已打赏
CentosNGINX

centos 8安装nginx

2023-5-5 16:58:46

MYSQL

MYSQL-连接数据库

2021-10-9 13:38:25

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

Warning: error_log(/www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/#log/log-0719.txt): failed to open stream: No such file or directory in /www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900