博客
关于我
Github 连接不上解决方法 Android studio 阿里镜像地址
阅读量:413 次
发布时间:2019-03-06

本文共 914 字,大约阅读时间需要 3 分钟。

方法一

有时GitHub会出现连接超时的情况 ,这种情况需要打开 C:\Windows\System32\drivers\etc 下的host文件,如果没有可以自己创建文本文件改后缀名。

打开 这个网站,查询github.com 的IP ,添加到文件host最后一行中。示例:
140.82.112.3 github.com
注意是github.com的IP。如果填错chrome会出现 您的连接不是私密连接 ,
最后命令行 ping github.com 成功!

方法二

添加GitHub加速的浏览器插件,具体可到谷歌插件商店下载。

此外,每年到一定时间就会出现GitHub登录不上的问题,据传言是专门的DNS污染,这样的话就只能使用魔法软件了,使用过程中还有一些技巧,常用的魔法软件连接模式是PAC模式,但默认GitHub是不会走代理的,这需要我们手动设置下PAC的规则,在自定义规则中添加如下 ||github.com/^ 即可使所有github.com的域名下连接都走代理了。

Android studio 添加gradle阿里镜像地址,加快构建速度。

buildscript {    repositories {        google()        jcenter()        maven {            name 'aliyun'            url 'http://maven.aliyun.com/nexus/content/groups/public/'        }    }}allprojects {    repositories {        maven { url 'https://maven.aliyun.com/repository/public' }        maven { url 'https://maven.aliyun.com/repository/google' }        maven { url 'https://jitpack.io' }        google()        jcenter()    }}

转载地址:http://ucpkz.baihongyu.com/

你可能感兴趣的文章
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>