随手记一下
阿里
https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11kKgAqN
清华
https://mirrors.tuna.tsinghua.edu.cn/help/centos/
配置 pip 镜像源,斱便快速下载 python 库.可以提升安装速度
mkdir ~/.pip
tee /root/.pip/pip.conf << 'EOF'
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF
pip install -U pip #升级一下 pip,不然后期安装会报警告
docker源
清华
wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
sudo sed -i ‘s+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+’ /etc/yum.repos.d/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce
阿里
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce