当前位置:   article > 正文

使用FastGithub解决国内访问GitHub失败的问题_fastgithub.domainresolve.dnscryptproxy dnscrypt-pr

fastgithub.domainresolve.dnscryptproxy dnscrypt-proxy启动失败:

问题提出

    在ArduinoIDE安装开发板开发包、库时经常由于这些包和库的索引指向的是github下面的开源项目,所以安装失败的可能性极高。开启了FastGithub后,更新成功率和速度都快了很多!

问题解决

    使用FastGithub开源工具(支持Win,Mac,Linux);FastGithub是一款基于DNS和HTTP代理的GitHub加速工具,可以加速GitHub的访问速度。
    从这个地址下载https://github.com/dotnetcore/FastGithub 

 Windows下运行

解压后,运行FastGithub.UI.exe即可,如下图,一般不需要设置,用默认即可。

Linux下运行

# yum install lrzsz
# yum install libicu  //一定要安装这个,否即FastGitHub运行提示缺少libicu,启动失败。
# cd ~
# rz

# unzip fastgithub_linux-x64.zip
# cd fastgithub_linux-x64
# ./fastgithub start   //多种启动方式,我是以Service启动
# systemctl status fastgithub
● fastgithub.service - fastgithub
     Loaded: loaded (/etc/systemd/system/fastgithub.service; enabled; vendor preset: disabled)
     Active:
active (running) since Mon 2023-05-15 17:50:25 CST; 17min ago
   Main PID: 70755 (fastgithub)
      Tasks: 25 (limit: 23157)
     Memory: 71.5M
        CPU: 4.141s
     CGroup: /system.slice/fastgithub.service
             ├─70755 /root/fastgithub_linux-x64/fastgithub
             └─70780 dnscrypt-proxy/dnscrypt-proxy

May 15 17:50:25 qzm-cloud-vm1 fastgithub[70755]: 已监听http://localhost:38457,http代理服务启动完成
May 15 17:50:25 qzm-cloud-vm1 fastgithub[70755]: 2023-05-15T17:50:25.3094712+08:00 [INF]
May 15 17:50:25 qzm-cloud-vm1 fastgithub[70755]: FastGithub.AppHostedService
May 15 17:50:25 qzm-cloud-vm1 fastgithub[70755]: FastGithub启动完成,当前版本为v2.1.4,访问 https://github.com/dotnetcore/fastgithub 关注新版本
May 15 17:50:25 qzm-cloud-vm1 systemd[1]: Started fastgithub.
May 15 17:50:25 qzm-cloud-vm1 systemd[1]: fastgithub.service: Got notification message from PID 70780, but reception only permitted for main PID 70755
May 15 17:50:26 qzm-cloud-vm1 fastgithub[70755]: 2023-05-15T17:50:26.3262631+08:00 [WRN]
May 15 17:50:26 qzm-cloud-vm1 fastgithub[70755]: FastGithub.AppHostedService
May 15 17:50:26 qzm-cloud-vm1 fastgithub[70755]: 请设置系统自动代理为http://127.0.0.1:38457,或手动代理http/https为127.0.0.1:38457
May 15 17:53:38 qzm-cloud-vm1 systemd[1]: fastgithub.service: Got notification message from PID 70780, but reception only permitted for main PID 70755


 

 

扩展知识

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/740188
推荐阅读
相关标签
  

闽ICP备14008679号