dengshen
V2EX  ›  问与答

国内云与 github

  •  
  •   dengshen · Feb 23, 2021 via iPhone · 3797 views
    This topic created in 2100 days ago, the information mentioned may be changed or developed.

    最近买了腾讯轻量云发现连不上 github,很多 sh 安装脚本中都会去 github 上拉代码!之前一直用 gcp 和 aws 啥问题没有,第一次用国内云,npm install 各种拉不下依赖搞死人了[不想用淘宝源]

    11 replies  •  2021-02-24 17:30:55 +08:00
    torenayto
    torenayto
    Feb 23, 2021 via iPhone
    1
    你确定代理了命令行?
    curl google.com
    fanyz
    fanyz
    Feb 23, 2021 via Android
    2
    油猴有个 github 加速脚本,你可以试下
    dengshen
    dengshen
    OP
    Feb 23, 2021
    3
    @torenayto 云服务器上没有代理, 有 ubuntu 的 client 能跑 v2ray 吗?
    @fanyz 我是需要在腾讯云服务器里面能 clone GitHub 仓库, 并不是在我本机 clone
    love
    love
    Feb 23, 2021
    4
    不想用国内源的原因是啥?
    hflyf123
    hflyf123
    Feb 23, 2021
    5
    @dengshen 当然有啦
    johnnyNg
    johnnyNg
    Feb 23, 2021
    6
    。。。
    国内现状就是这样,可以买香港的节点
    dengshen
    dengshen
    OP
    Feb 23, 2021
    7
    @love 淘宝源有时候会有一些玄学问题
    @johnnyNg 怎么用香港服务器进行代理?
    sky96111
    sky96111
    Feb 24, 2021 via Android
    8
    因为国内云服务器是走墙的。github 脚本的话,可以写一下 hosts 临时解决。
    dengshen
    dengshen
    OP
    Feb 24, 2021 via iPhone
    9
    @sky96111 目前也是这样处理的,hosts 收集是个麻烦事。不知道有对应的脚本能解决吗?
    sky96111
    sky96111
    Feb 24, 2021 via Android❤️1
    10
    @dengshen https://github.com/521xueweihan/GitHub520
    有人维护了最新的 github 的 IP 地址,可以写脚本配合 crontab 自动更新 hosts
    dengshen
    dengshen
    OP
    Feb 24, 2021 via iPhone
    11
    @sky96111 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2512 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:32 · PVG 20:32 · LAX 04:32 · JFK 07:32
    ♥ Do have faith in what you're doing.