王哆啦的自留地 - 2021年11月
type: channel
link: https://www.wangduola.com/2021/11/
description: 深筑墙，广积粮。
items: centos7 更换yum、pip源

centos7 更换yum、pip源
type: item
date: 2021-11-05T19:56:00+08:00
description: 更换yum源：centos7wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo或curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache更换pip源：mkdir /root/.pipvim pip.conf[global] index-url=http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com保存