美文网首页
github访问不了该怎么办?

github访问不了该怎么办?

作者: qiaoflin | 来源:发表于2020-02-20 10:06 被阅读0次

    1. 获取Github相关网站的IP

    访问https://www.ipaddress.com,找到页面中下方的“IP Address Tools - Quick Links”,分别输入github.global.ssl.fastly.netgithub.com,查询ip地址。

    2. 修改本地host文件

    以Ubuntu系统为例,命令行下输入:sudo vim /etc/hosts,然后输入电脑的密码,打开host文件。

    3.增加host映射

    4. 更新DNS缓存

    service nscd restart
    如果没有安装:apt-get install -y nscd

    5. 接下来就可以随意访问Github和clone代码了。


    Links

    https://cloud.tencent.com/developer/news/121056

    相关文章

      网友评论

          本文标题:github访问不了该怎么办?

          本文链接:https://www.haomeiwen.com/subject/vpmtqhtx.html