从零开始的Linux运维屌丝之路,资源免费分享平台   运维人员首选:简单、易用、高效、安全、稳定、社区活跃的开源软件

修改pip/golang/docker源

发布:蔺要红10-06分类: 常用

# pip
mkdir ~/.pip
cd ~/.pip
touch pip.conf

[root@new-op .pip]# cat  pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

# go
export GO111MODULE=on
export GOPROXY=https://goproxy.io

# docker
cat > /etc/docker/daemon.json <<-'EOF'
{
    "registry-mirrors": ["https://4y5n34v7.mirror.aliyuncs.com"]
}
EOF
温馨提示如有转载或引用以上内容之必要,敬请将本文链接作为出处标注,如有侵权我会在24小时之内删除!

欢迎使用手机扫描访问本站