vlambda博客
学习文章列表

常用开发工具及开发环境的国内镜像源

maven 阿里源

<mirror> <id>nexus-aliyun</id> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  <mirrorOf>central</mirrorOf> </mirror>


Gradle 阿里源

allprojects { repositories { maven { url 'file:///D:/dev_tools/maven_repository'} mavenLocal() maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" } maven { name "Bstek" ; url "http://nexus.bsdn.org/content/groups/public/" } mavenCentral() }
buildscript { repositories { maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' } maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' } maven { name "M2" ; url 'https://plugins.gradle.org/m2/' } } }}


pip 清华源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple


docker 网易源

vim /etc/docker/daemon.json
{ "registry-mirrors": ["http://hub-mirror.c.163.com"]}


CentOS7  yum 阿里源

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo


CentOS7 epel 阿里源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo


Ubuntu20.04 apt 阿里源

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse


nvm 淘宝源

vim ~/.bashrc
export NVM_NODEJS_ORG_MIRROR="https://npm.taobao.org/mirrors/node"


npm 淘宝源

npm config set registry https://registry.npm.taobao.org


yarn 淘宝源

yarn config set registry https://registry.npm.taobao.org


yay 清华源

yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save


最后附上几个知名开源镜像站,如果上面没有你需要的镜像源可自行查找

清华大学开源软件镜像站:

https://mirrors.tuna.tsinghua.edu.cn/

阿里巴巴开源镜像站:

https://developer.aliyun.com/mirror/

网易开源镜像站:

http://mirrors.163.com/

中科大开源镜像站:

http://mirrors.ustc.edu.cn/



最后感谢我宇宙无敌可爱的姐姐!